< prev index next >

test/micro/org/openjdk/bench/java/lang/foreign/CLayouts.java

Print this page
@@ -67,11 +67,11 @@
      public static final ValueLayout.OfDouble C_DOUBLE = ValueLayout.JAVA_DOUBLE;
      /**
       * The {@code T*} native type.
       */
      public static final AddressLayout C_POINTER = ValueLayout.ADDRESS
-             .withTargetLayout(MemoryLayout.sequenceLayout(C_CHAR));
+             .withTargetLayout(MemoryLayout.sequenceLayout(Long.MAX_VALUE, C_CHAR));
  
      private static Linker LINKER = Linker.nativeLinker();
  
      private static final MethodHandle FREE = LINKER.downcallHandle(
              LINKER.defaultLookup().find("free").get(), FunctionDescriptor.ofVoid(C_POINTER));
< prev index next >