< prev index next >

test/micro/org/openjdk/bench/jdk/incubator/foreign/TestAdaptVarHandles.java

Print this page
@@ -24,12 +24,12 @@
  
  package org.openjdk.bench.jdk.incubator.foreign;
  
  import jdk.incubator.foreign.MemoryHandles;
  import jdk.incubator.foreign.MemoryLayout;
- import jdk.incubator.foreign.MemoryLayouts;
  import jdk.incubator.foreign.MemorySegment;
+ import jdk.incubator.foreign.ValueLayout;
  import org.openjdk.jmh.annotations.Benchmark;
  import org.openjdk.jmh.annotations.BenchmarkMode;
  import org.openjdk.jmh.annotations.Fork;
  import org.openjdk.jmh.annotations.Measurement;
  import org.openjdk.jmh.annotations.Mode;

@@ -83,12 +83,12 @@
  
      static final VarHandle VH_int = MethodHandles.arrayElementVarHandle(int[].class);
  
      static final VarHandle VH_box_int = MemoryHandles.filterValue(VH_int, INTBOX_TO_INT, INT_TO_INTBOX);
  
-     static final VarHandle VH_addr_int = MemoryLayout.sequenceLayout(MemoryLayouts.JAVA_INT)
-             .varHandle(int.class, MemoryLayout.PathElement.sequenceElement());
+     static final VarHandle VH_addr_int = MemoryLayout.sequenceLayout(ValueLayout.JAVA_INT)
+             .varHandle(MemoryLayout.PathElement.sequenceElement());
  
      static final VarHandle VH_addr_box_int = MemoryHandles.filterValue(VH_addr_int, INTBOX_TO_INT, INT_TO_INTBOX);
  
      static final MethodHandle MH_int = VH_int.toMethodHandle(VarHandle.AccessMode.GET);
  
< prev index next >