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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 16
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      $ 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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: