< prev index next > test/micro/org/openjdk/bench/java/lang/foreign/BulkOps.java
Print this page
final MemorySegment segment = arena.allocate(ALLOC_SIZE, 1);
final IntBuffer buffer = IntBuffer.allocate(ELEM_SIZE);
final int[] ints = new int[ELEM_SIZE];
+ @SuppressWarnings("initialization")
final MemorySegment bytesSegment = MemorySegment.ofArray(ints);
final long UNSAFE_INT_OFFSET = unsafe.arrayBaseOffset(int[].class);
// large(ish) segments/buffers with same content, 0, for mismatch, non-multiple-of-8 sized
static final int SIZE_WITH_TAIL = (1024 * 1024) + 7;
< prev index next >