Update JCTools to 2.0.1
This commit is contained in:
parent
6ac5f35077
commit
4d7d478a3d
@ -806,7 +806,7 @@ public final class PlatformDependent {
|
|||||||
// up to the next power of two and so will overflow otherwise.
|
// up to the next power of two and so will overflow otherwise.
|
||||||
final int capacity =
|
final int capacity =
|
||||||
Math.max(Math.min(maxCapacity, MAX_ALLOWED_MPSC_CAPACITY), MIN_MAX_MPSC_CAPACITY);
|
Math.max(Math.min(maxCapacity, MAX_ALLOWED_MPSC_CAPACITY), MIN_MAX_MPSC_CAPACITY);
|
||||||
return new MpscChunkedArrayQueue<T>(MPSC_CHUNK_SIZE, capacity, true);
|
return new MpscChunkedArrayQueue<T>(MPSC_CHUNK_SIZE, capacity);
|
||||||
} else {
|
} else {
|
||||||
return new MpscLinkedAtomicQueue<T>();
|
return new MpscLinkedAtomicQueue<T>();
|
||||||
}
|
}
|
||||||
|
2
pom.xml
2
pom.xml
@ -387,7 +387,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jctools</groupId>
|
<groupId>org.jctools</groupId>
|
||||||
<artifactId>jctools-core</artifactId>
|
<artifactId>jctools-core</artifactId>
|
||||||
<version>1.2.1</version>
|
<version>2.0.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
Loading…
Reference in New Issue
Block a user