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

gc/arguments/TestAggressiveHeap.java fails intermittently

XMLWordPrintable

    • gc
    • b14

        I hit this test failure 2 times in JPRT. I think the test should be run with -Xmx flag but I could be wrong.

        # There is insufficient memory for the Java Runtime Environment to continue.
        # Native memory allocation (mmap) failed to map 19658702848 bytes for committing reserved memory.
        # An error report file with more information is saved as:
        # hotspot/testoutput/hotspot_tier1_gc_2/JTwork/scratch/3/hs_err_pid24731.log
        ];
         stderr: [Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000ad400000, 19658702848, 0) failed; error='Resource unavailable, try again' (errno=11)
        ]
         exitValue = 1

        java.lang.RuntimeException: Expected to get exit value of [0]

        at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:380)
        at TestAggressiveHeap.testFlag(TestAggressiveHeap.java:66)
        at TestAggressiveHeap.main(TestAggressiveHeap.java:46)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
        at java.base/java.lang.Thread.run(Thread.java:844)

              sjohanss Stefan Johansson
              kvn Vladimir Kozlov
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: