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

gc/stress/TestStressG1Humongous.java#id1 fails with NoClassDefFoundError: Could not initialize class java.util.concurrent.locks.LockSupport

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2 P2
    • 25
    • 23
    • hotspot
    • gc

      The following test failed in the JDK23 CI:

      gc/stress/TestStressG1Humongous.java#id1

      Here's a snippet from the log file:

      #section:driver
      ----------messages:(8/386)----------
      command: driver gc.stress.TestStressG1Humongous 16 5 2.1 120
      reason: User specified action: run driver/timeout=180 gc.stress.TestStressG1Humongous 16 5 2.1 120
      started: Sat Feb 10 22:19:12 UTC 2024
      Mode: agentvm
      Agent id: 34
      Additional exports to unnamed modules from @modules: java.base/jdk.internal.misc
      finished: Sat Feb 10 22:21:36 UTC 2024
      elapsed time (seconds): 144.164
      ----------configuration:(15/1456)*----------

      <snip>

      ----------System.out:(5/2040)*----------
      Command line: [c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+9-628\\windows-x64-debug.jdk\\jdk-23\\fastdebug\\bin\\java.exe -cp C:\\sb\\prod\\1707601236\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_gc\\classes\\3\\gc\\stress\\TestStressG1Humongous_id1.d;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk-23+9-628\\src.full\\open\\test\\hotspot\\jtreg\\gc\\stress;C:\\sb\\prod\\1707601236\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_gc\\classes\\3\\test\\lib;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\jtreg.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\junit-platform-console-standalone-1.9.2.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\testng-7.3.0.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\jcommander-1.82.jar;C:\\ade\\mesos\\work_dir\\jib-master\\install\\jtreg\\7.3.1\\1\\bundles\\jtreg-7.3.1+1.zip\\jtreg\\lib\\guice-5.1.0.jar -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk\\21\\35\\bundles\\windows-x64\\jdk-21_windows-x64_bin.zip\\jdk-21 -Djava.io.tmpdir=c:\\sb\\prod\\1707601236\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_gc\\tmp -XX:+CreateCoredumpOnCrash -Xcomp -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -XX:-UseCompressedOops -Xlog:gc=debug -Xmx1024m -XX:+UseG1GC -XX:G1HeapRegionSize=16m -Dtimeout=120 -Dthreads=5 -Dhumongoussize=2.1 -Dregionsize=16 gc.stress.TestStressG1HumongousImpl ]
      [2024-02-10T22:19:18.917345800Z] Gathering output for process 36644
      [2024-02-10T22:19:19.107491500Z] Waiting for completion for process 36644
      [2024-02-10T22:21:35.801941Z] Waiting for completion finished for process 36644
      Output and diagnostic info for process 36644 was saved into 'pid-36644-output.log'
      ----------System.err:(230/17289)----------
       stdout: [[0.051s][info][gc] Using G1
      [0.051s][debug][gc] ConcGCThreads: 3 offset 22
      [0.051s][debug][gc] ParallelGCThreads: 10
      [0.051s][debug][gc] Initialize mark stack with 4096 chunks, maximum 536870912
      [15.120s][info ][gc] GC(0) Pause Young (Concurrent Start) (G1 Humongous Allocation) 146M->144M(384M) 39.044ms
      [15.120s][info ][gc] GC(1) Concurrent Undo Cycle
      [15.125s][info ][gc] GC(1) Concurrent Undo Cycle 4.357ms

      <snip>

      [132.906s][info ][gc] GC(107) Pause Cleanup 954M->954M(1024M) 9.500ms
      [132.909s][info ][gc] GC(107) Concurrent Mark Cycle 528.538ms
      [135.274s][info ][gc] GC(108) Pause Young (Normal) (G1 Evacuation Pause) 980M->949M(1024M) 210.457ms
      ];
       stderr: [Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.locks.LockSupport
      at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:754)
      at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1099)
      at java.base/java.util.concurrent.CountDownLatch.await(CountDownLatch.java:230)
      at gc.stress.TestStressG1HumongousImpl.run(TestStressG1Humongous.java:139)
      at gc.stress.TestStressG1HumongousImpl.main(TestStressG1Humongous.java:124)
      Caused by: java.lang.OutOfMemoryError: Java heap space
      Exception in thread "Thread-5" java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.locks.LockSupport
      at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.signalNext(AbstractQueuedSynchronizer.java:645)
      at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1147)
      at java.base/java.util.concurrent.CountDownLatch.countDown(CountDownLatch.java:290)
      at gc.stress.TestStressG1HumongousImpl$AllocationThread.run(TestStressG1Humongous.java:249)
      at java.base/java.lang.Thread.run(Thread.java:1575)
      Caused by: java.lang.OutOfMemoryError: Java heap space
      ]
       exitValue = 1

      java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:521)
      at gc.stress.TestStressG1Humongous.main(TestStressG1Humongous.java:105)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1575)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: