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

misc tests failed with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"

    XMLWordPrintable

Details

    • b21
    • x86_64
    • windows

    Backports

      Description

        The following test failed in the JDK16 CI:

        vmTestbase/gc/lock/jvmti/alloc/jvmtialloclock03/TestDescription.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(4/378)----------
        command: main -XX:-UseGCOverheadLimit -agentlib:JVMTIAllocLocker gc.lock.LockerTest -gp1 interned(randomString) -lockers jvmtiAlloc
        reason: User specified action: run main/othervm/native -XX:-UseGCOverheadLimit -agentlib:JVMTIAllocLocker gc.lock.LockerTest -gp1 interned(randomString) -lockers jvmtiAlloc
        Mode: othervm [/othervm specified]
        elapsed time (seconds): 2420.318
        ----------configuration:(0/0)----------
        ----------System.out:(70/4514)----------
        Stress time: 30 seconds
        Stress iterations factor: 1
        Stress threads factor: 1
        Stress runs factor: 1
        Max memory: 2061500416
        Sleep time: 500
        Iterations: 0
        Number of threads: 32
        Run GC thread: false
        Run mem diag thread: false
        Run forever: false
        For random generator using seed: -4034922344479984039
        To re-run test with same seed value please add "-Djdk.test.lib.random.seed=-4034922344479984039" to command line.
        Starting Thread[gc.lock.LockerTest$Worker@2f86d5ed,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@8332f7e,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@1103ba28,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@6a1f8540,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@6fbdabb6,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@7e6431e0,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@72ba06fe,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@6499a86c,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@66fb4f52,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@39cf995c,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@1b60f56d,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@3293f4a5,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@eaebc7a,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@4b6ec18a,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@57398e17,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@7a226e89,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@11440db,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@3ccbb3e2,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@2719db5a,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@4e26af16,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@6d972c91,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@c22c662,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@65080fb7,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@1e2d521f,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@4a8a16ef,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@5081c80a,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@7551101a,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@1180905,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@1bbf4aa7,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@45a01042,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@388c192c,5,MainThreadGroup]
        Starting Thread[gc.lock.LockerTest$Worker@799d6f19,5,MainThreadGroup]
        Exception in
        gc.lock.LockerTest$Worker@65080fb7
        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)
        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:1409)
        at java.base/java.lang.invoke.MethodType$ConcurrentWeakInternSet.get(MethodType.java:1368)
        at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:343)
        at java.base/java.lang.invoke.MethodType.methodType(MethodType.java:287)
        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:78)
        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.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:(44/6484)*----------

        Attachments

          Issue Links

            Activity

              People

                coleenp Coleen Phillimore
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: