Details
-
Bug
-
Resolution: Fixed
-
P4
-
16
-
b21
-
x86_64
-
windows
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8291018 | 17.0.5-oracle | Adithya Haradi Gopal | P4 | Resolved | Fixed | b04 |
JDK-8291607 | 17.0.5 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8334014 | 11.0.25-oracle | Ramkumar Sunderbabu | P4 | Resolved | Fixed | b01 |
Description
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
- backported by
-
JDK-8291018 misc tests failed with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"
- Resolved
-
JDK-8291607 misc tests failed with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"
- Resolved
-
JDK-8334014 misc tests failed with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"
- Resolved
- duplicates
-
JDK-8261286 vmTestbase/gc/lock/jniref/jnilocalreflock03/TestDescription.java failed with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"
- Closed
-
JDK-8267882 vmTestbase/gc/lock/malloc/malloclock03/TestDescription.java failed with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"
- Closed
-
JDK-8271253 vmTestbase/gc/lock/jniref/jniweakglobalreflock02/TestDescription.java fails with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"
- Closed
- relates to
-
JDK-8251904 vmTestbase/nsk/sysdict/vm/stress/btree/btree010/btree010.java fails with ClassNotFoundException: nsk.sysdict.share.BTree0LLRLRLRRLR
- Resolved
-
JDK-8261286 vmTestbase/gc/lock/jniref/jnilocalreflock03/TestDescription.java failed with "NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom"
- Closed
-
JDK-8048190 NoClassDefFoundError omits original ExceptionInInitializerError
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/11dddf15
-
Commit openjdk/jdk/cd07b3ca
-
Review openjdk/jdk17u-dev/605
-
Review openjdk/jdk/5969
-
Review(master) openjdk/jdk11u-dev/2901