Skip to content

Commit 26c993b

Browse files
committed
Backport lookahead
1 parent c8499a4 commit 26c993b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/queue-utils/src/main/java/datadog/common/queue/SpscArrayQueueVarHandle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public SpscArrayQueueVarHandle(int requestedCapacity) {
2121
// This should go in a common place because today is defined under jctools-channel
2222
// but here I'd like not to draw that dependency
2323
lookAheadStep =
24-
Math.min(capacity / 4, Integer.getInteger("jctools.spsc.max.lookahead.step", 4096));
24+
Math.min(capacity / 4,4096); // 4096 is the default look-ahead in jctools (see `jctools.spsc.max.lookahead.step`)
2525
}
2626

2727
/**

0 commit comments

Comments
 (0)