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

vmTestbase/gc/lock/malloc/malloclock03/TestDescription.java failed with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"

XMLWordPrintable

    • gc
    • x86_64
    • windows

      The following test failed in the JDK17 CI:

      vmTestbase/gc/lock/malloc/malloclock03/TestDescription.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(4/315)----------
      command: main -XX:-UseGCOverheadLimit gc.lock.LockerTest -gp1 interned(randomString) -lockers malloc
      reason: User specified action: run main/othervm/native -XX:-UseGCOverheadLimit gc.lock.LockerTest -gp1 interned(randomString) -lockers malloc
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 734.114
      ----------configuration:(0/0)----------
      ----------System.out:(74/4912)----------
      Stress time: 120 seconds
      Stress iterations factor: 1
      Stress threads factor: 1
      Stress runs factor: 1
      Max memory: 2136997888
      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: -3270127466274356397
      To re-run test with same seed value please add "-Djdk.test.lib.random.seed=-3270127466274356397" to command line.
      Starting Thread[gc.lock.LockerTest$Worker@6486f,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@59a272b8,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@6bd50cd3,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@79d0a0cb,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@36f48ca,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@4912ddad,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@a62e3c8,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@76c8ccb7,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@f18f3bc,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@50b8a847,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@4dd96d3b,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@7d44ad43,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@35892444,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@20665822,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@26d049a0,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@7e26c68c,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@2716608,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@1044992c,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@34fd4fcd,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@7ca7fd78,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@75ef95c2,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@4156efaa,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@1f0b436a,5,MainThreadGroup]
      Starting Thread[gc.lock.LockerTest$Worker@5c0421ce,5,MainThreadGroup]
      Exception in
      gc.lock.LockerTest$Worker@75ef95c2
      java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
      at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:224)
      at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:144)
      at gc.lock.LockerTest$Worker.run(LockerTest.java:54)
      at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:106)
      at java.base/java.lang.Thread.run(Thread.java:831)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
      at java.base/java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2584)
      at java.base/java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2334)
      at java.base/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1173)
      at java.base/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1102)
      at java.base/java.lang.invoke.MethodType$ConcurrentWeakInternSet.expungeStaleElements(MethodType.java:1406)
      at java.base/java.lang.invoke.MethodType$ConcurrentWeakInternSet.get(MethodType.java:1365)
      at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:341)
      at java.base/java.lang.invoke.MethodType.methodType(MethodType.java:281)
      at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:211)
      ... 4 more
      Failures summary:
      java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
      at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:224)
      at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:144)
      at gc.lock.LockerTest$Worker.run(LockerTest.java:54)
      at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:106)
      at java.base/java.lang.Thread.run(Thread.java:831)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
      at java.base/java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2584)
      at java.base/java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2334)
      at java.base/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1173)
      at java.base/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1102)
      at java.base/java.lang.invoke.MethodType$ConcurrentWeakInternSet.expungeStaleElements(MethodType.java:1406)
      at java.base/java.lang.invoke.MethodType$ConcurrentWeakInternSet.get(MethodType.java:1365)
      at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:341)
      at java.base/java.lang.invoke.MethodType.methodType(MethodType.java:281)
      at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:211)
      ... 4 more
      ----------System.err:(16/954)----------
      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.lock.LockerTest.main(LockerTest.java:77)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:831)

      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:(41/6404)*----------

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

              Created:
              Updated:
              Resolved: