Skip to content

Commit 7d6c7d7

Browse files
author
barkerm
committed
Remove debugging code and redundant gating sequence.
1 parent 2ac22c1 commit 7d6c7d7

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

src/main/java/com/lmax/disruptor/WorkerPool.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ public WorkerPool(
9595
workSequence);
9696
}
9797

98-
ringBuffer.addGatingSequences(workSequence);
9998
ringBuffer.addGatingSequences(getWorkerSequences());
10099
}
101100

src/test/java/com/lmax/disruptor/WorkerStressTest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,6 @@ public void run()
142142
testEvent.b = next - 7;
143143
testEvent.s = "wibble-" + next;
144144
ringBuffer.publish(next);
145-
146-
if ((next + 1) % 1000 == 0)
147-
{
148-
System.out.printf("Published: %d%n", next + 1);
149-
}
150145
}
151146
}
152147
catch (Exception e)
@@ -156,7 +151,6 @@ public void run()
156151
finally
157152
{
158153
shutdownLatch.countDown();
159-
System.out.println("Released latch: " + shutdownLatch.getCount());
160154
}
161155
}
162156
}

0 commit comments

Comments
 (0)