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

ZGC: OOM before clearing all SoftReferences

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 20
    • 17, 20
    • hotspot
    • gc
    • b22
    • x86_64
    • generic
    • Verified

    Description

      The following test failed in the JDK20 CI:

      vmTestbase/gc/gctests/SoftReference/SoftReferenceTest/SoftReferenceTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(4/282)----------
      command: main gc.gctests.SoftReference.SoftReferenceTest.SoftReferenceTest -stressTime 600
      reason: User specified action: run main/othervm gc.gctests.SoftReference.SoftReferenceTest.SoftReferenceTest -stressTime 600
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 1.821
      ----------configuration:(0/0)----------
      ----------System.out:(23/1163)----------
      Stress time: 2400 seconds
      Stress iterations factor: 1
      Stress threads factor: 1
      Stress runs factor: 1
      Max memory: 1038090240
      Sleep time: 500
      Iterations: 0
      Number of threads: 24
      Run GC thread: false
      Run mem diag thread: false
      Run forever: false
      For random generator using seed: 7240189110735516863
      To re-run test with same seed value please add "-Djdk.test.lib.random.seed=7240189110735516863" to command line.
      nsk.share.TestFailure: 2994 out of 160065 SoftReferences was not null at time of OutOfMemoryError
      at gc.gctests.SoftReference.SoftReferenceTest.SoftReferenceTest.run(SoftReferenceTest.java:134)
      at nsk.share.test.Tests$TestRunner.execute(Tests.java:82)
      at nsk.share.test.Tests$TestRunner.run(Tests.java:96)
      at nsk.share.gc.GC.runTest(GC.java:114)
      at gc.gctests.SoftReference.SoftReferenceTest.SoftReferenceTest.main(SoftReferenceTest.java:147)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:1589)
      ----------System.err:(14/802)----------
      nsk.share.TestFailure: Test exit code: 97
      at nsk.share.test.Tests$TestRunner.execute(Tests.java:90)
      at nsk.share.test.Tests$TestRunner.run(Tests.java:96)
      at nsk.share.gc.GC.runTest(GC.java:114)
      at gc.gctests.SoftReference.SoftReferenceTest.SoftReferenceTest.main(SoftReferenceTest.java:147)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:1589)

      JavaTest Message: Test threw exception: nsk.share.TestFailure: Test exit code: 97
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: nsk.share.TestFailure: Test exit code: 97
      ----------rerun:(34/8259)*----------

      Attachments

        Issue Links

          Activity

            People

              eosterlund Erik Ă–sterlund
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: