< prev index next > test/micro/org/openjdk/bench/java/lang/foreign/TestAdaptVarHandles.java
Print this page
static final MethodHandle MH_INT = VH_ARR_INT.toMethodHandle(VarHandle.AccessMode.GET);
static final MethodHandle MH_BOX_INT = MethodHandles.filterReturnValue(MH_INT, INT_TO_INTBOX);
int[] base = new int[ELEM_SIZE];
+ @SuppressWarnings("initialization")
MemorySegment segment = MemorySegment.ofArray(base);
@Setup
public void setup() {
for (int i = 0; i < ELEM_SIZE; i++) {
< prev index next >