Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8255270

java/foreign/TestMismatch.java still fails on 32-bit platforms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 16
    • core-libs
    • None

      $ CONF=linux-x86-server-fastdebug make images run-test TEST=java/foreign/TestMismatch.java

      test TestMismatch.testLarge(): failure
      java.lang.OutOfMemoryError: Unable to allocate 2147483660 bytes
      at java.base/jdk.internal.misc.Unsafe.allocateMemory(Unsafe.java:632)
      at jdk.incubator.foreign/jdk.internal.foreign.NativeMemorySegmentImpl.makeNativeSegment(NativeMemorySegmentImpl.java:91)
      at jdk.incubator.foreign/jdk.incubator.foreign.MemorySegment.allocateNative(MemorySegment.java:612)
      at jdk.incubator.foreign/jdk.incubator.foreign.MemorySegment.allocateNative(MemorySegment.java:559)
      at TestMismatch.testLarge(TestMismatch.java:114)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

            mcimadamore Maurizio Cimadamore
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: