Top Description Constructors Methods
io.netty.util.internal.shaded.org.jctools.queues

pack-priv final Class LinkedArrayQueueUtil

extends Object
Class Inheritance
Annotations
@InternalAPI
Imports
io.netty.util.internal.shaded.org.jctools.util.InternalAPI

This is used for method substitution in the LinkedArray classes code generation.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
length(Object[] buf)

pack-priv static long
modifiedCalcCircularRefElementOffset(long index, long mask)

This method assumes index is actually (index << 1) because lower bit is used for resize.

pack-priv static long
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LinkedArrayQueueUtilback to summary
pack-priv LinkedArrayQueueUtil()

Method Detail

lengthback to summary
pack-priv static int length(Object[] buf)
modifiedCalcCircularRefElementOffsetback to summary
pack-priv static long modifiedCalcCircularRefElementOffset(long index, long mask)

This method assumes index is actually (index << 1) because lower bit is used for resize. This is compensated for by reducing the element shift. The computation is constant folded, so there's no cost.

nextArrayOffsetback to summary
pack-priv static long nextArrayOffset(Object[] curr)