Skip to content

Commit

Permalink
Remove debugging code and redundant gating sequence.
Browse files Browse the repository at this point in the history
  • Loading branch information
barkerm committed Sep 28, 2016
1 parent 2ac22c1 commit 7d6c7d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/main/java/com/lmax/disruptor/WorkerPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ public WorkerPool(
workSequence);
}

ringBuffer.addGatingSequences(workSequence);
ringBuffer.addGatingSequences(getWorkerSequences());
}

Expand Down
6 changes: 0 additions & 6 deletions src/test/java/com/lmax/disruptor/WorkerStressTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@ public void run()
testEvent.b = next - 7;
testEvent.s = "wibble-" + next;
ringBuffer.publish(next);

if ((next + 1) % 1000 == 0)
{
System.out.printf("Published: %d%n", next + 1);
}
}
}
catch (Exception e)
Expand All @@ -156,7 +151,6 @@ public void run()
finally
{
shutdownLatch.countDown();
System.out.println("Released latch: " + shutdownLatch.getCount());
}
}
}
Expand Down

0 comments on commit 7d6c7d7

Please sign in to comment.