-
Bug
-
Resolution: Unresolved
-
P4
-
23
Looks like test/hotspot/jtreg/vmTestbase/nsk/sysdict/share/BTreeTest.java can fail with OOME error. Seems https://bugs.openjdk.org/browse/JDK-8257534 was not enough to ensure all OOME related failures are properly caught in the eatMemory logic.
The test does not consider the caused by exception.
Output
The level = 3 the height = 4
Stress time: 30 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
Starting Thread[#32,nsk.sysdict.share.SysDictTest$Worker@43e11ef7,5,MainThreadGroup]
Starting Thread[#33,nsk.sysdict.share.SysDictTest$Worker@7507fd3f,5,MainThreadGroup]
Starting Thread[#34,nsk.sysdict.share.SysDictTest$Worker@3e5a53ce,5,MainThreadGroup]
Starting Thread[#35,nsk.sysdict.share.SysDictTest$Worker@836ab86,5,MainThreadGroup]
Starting Thread[#36,nsk.sysdict.share.SysDictTest$Worker@e205a01,5,MainThreadGroup]
Starting Thread[#37,nsk.sysdict.share.SysDictTest$Worker@4404b0ff,5,MainThreadGroup]
Starting Thread[#38,nsk.sysdict.share.SysDictTest$Worker@28ac4f92,5,MainThreadGroup]
Starting Thread[#39,nsk.sysdict.share.SysDictTest$Worker@15fbab9a,5,MainThreadGroup]
Starting Thread[#40,nsk.sysdict.share.SysDictTest$Worker@19071b76,5,MainThreadGroup]
Starting Thread[#41,nsk.sysdict.share.SysDictTest$Worker@7865c3e1,5,MainThreadGroup]
Starting Thread[#42,nsk.sysdict.share.SysDictTest$Worker@327fc3a0,5,MainThreadGroup]
Starting Thread[#43,nsk.sysdict.share.SysDictTest$Worker@7a90090e,5,MainThreadGroup]
Starting Thread[#44,nsk.sysdict.share.SysDictTest$Worker@5bed6181,5,MainThreadGroup]
Starting Thread[#45,nsk.sysdict.share.SysDictTest$Worker@dc1dbd6,5,MainThreadGroup]
Starting Thread[#46,nsk.sysdict.share.SysDictTest$Worker@41ef7b0d,5,MainThreadGroup]
Starting Thread[#47,nsk.sysdict.share.SysDictTest$Worker@3b4dd247,5,MainThreadGroup]
Starting Thread[#48,nsk.sysdict.share.SysDictTest$Worker@b9c5dc6,5,MainThreadGroup]
Starting Thread[#49,nsk.sysdict.share.SysDictTest$Worker@8802808,5,MainThreadGroup]
Starting Thread[#50,nsk.sysdict.share.SysDictTest$Worker@328d0d06,5,MainThreadGroup]
Starting Thread[#51,nsk.sysdict.share.SysDictTest$Worker@67073efa,5,MainThreadGroup]
Starting Thread[#52,nsk.sysdict.share.SysDictTest$Worker@e9c2db1,5,MainThreadGroup]
Starting Thread[#53,nsk.sysdict.share.SysDictTest$Worker@7559402,5,MainThreadGroup]
Starting Thread[#54,nsk.sysdict.share.SysDictTest$Worker@5dea5cd3,5,MainThreadGroup]
Starting Thread[#55,nsk.sysdict.share.SysDictTest$Worker@344597a,5,MainThreadGroup]
Exception in
nsk.sysdict.share.SysDictTest$Worker@327fc3a0
java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:256)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:196)
at nsk.sysdict.share.SysDictTest$Worker.run(SysDictTest.java:159)
at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:119)
at java.base/java.lang.Thread.run(Thread.java:1575)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
at java.base/java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2589)
at java.base/java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2339)
at java.base/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1176)
at java.base/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1105)
at java.base/jdk.internal.util.ReferencedKeyMap.removeStaleReferences(ReferencedKeyMap.java:336)
at java.base/jdk.internal.util.ReferencedKeyMap.get(ReferencedKeyMap.java:208)
at java.base/jdk.internal.util.ReferencedKeySet.get(ReferencedKeySet.java:173)
at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:401)
at java.base/java.lang.invoke.MethodType.methodType(MethodType.java:382)
at java.base/java.lang.invoke.MethodHandleNatives.findMethodHandleType(MethodHandleNatives.java:412)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:252)
... 4 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.OutOfMemoryError: Java heap space [in thread "nsk.sysdict.share.SysDictTest$Worker@7a90090e"]
at java.base/java.util.concurrent.ThreadLocalRandom.<clinit>(ThreadLocalRandom.java:318)
at java.base/java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2589)
at java.base/java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2339)
at java.base/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1176)
at java.base/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1105)
at java.base/jdk.internal.util.ReferencedKeyMap.removeStaleReferences(ReferencedKeyMap.java:336)
at java.base/jdk.internal.util.ReferencedKeyMap.get(ReferencedKeyMap.java:208)
at java.base/jdk.internal.util.ReferencedKeySet.get(ReferencedKeySet.java:173)
at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:401)
at java.base/java.lang.invoke.MethodType.methodType(MethodType.java:382)
at java.base/java.lang.invoke.MethodHandleNatives.findMethodHandleType(MethodHandleNatives.java:412)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:252)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:196)
at nsk.sysdict.share.SysDictTest$Worker.run(SysDictTest.java:159)
at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:119)
at java.base/java.lang.Thread.runWith(Thread.java:1588)
... 1 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:256)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:196)
at nsk.sysdict.share.SysDictTest$Worker.run(SysDictTest.java:159)
at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:119)
at java.base/java.lang.Thread.run(Thread.java:1575)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
at java.base/java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2589)
at java.base/java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2339)
at java.base/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1176)
at java.base/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1105)
at java.base/jdk.internal.util.ReferencedKeyMap.removeStaleReferences(ReferencedKeyMap.java:336)
at java.base/jdk.internal.util.ReferencedKeyMap.get(ReferencedKeyMap.java:208)
at java.base/jdk.internal.util.ReferencedKeySet.get(ReferencedKeySet.java:173)
at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:401)
at java.base/java.lang.invoke.MethodType.methodType(MethodType.java:382)
at java.base/java.lang.invoke.MethodHandleNatives.findMethodHandleType(MethodHandleNatives.java:412)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:252)
... 4 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.OutOfMemoryError: Java heap space [in thread "nsk.sysdict.share.SysDictTest$Worker@7a90090e"]
at java.base/java.util.concurrent.ThreadLocalRandom.<clinit>(ThreadLocalRandom.java:318)
at java.base/java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2589)
at java.base/java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2339)
at java.base/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1176)
at java.base/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1105)
at java.base/jdk.internal.util.ReferencedKeyMap.removeStaleReferences(ReferencedKeyMap.java:336)
at java.base/jdk.internal.util.ReferencedKeyMap.get(ReferencedKeyMap.java:208)
at java.base/jdk.internal.util.ReferencedKeySet.get(ReferencedKeySet.java:173)
at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:401)
at java.base/java.lang.invoke.MethodType.methodType(MethodType.java:382)
at java.base/java.lang.invoke.MethodHandleNatives.findMethodHandleType(MethodHandleNatives.java:412)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:252)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:196)
at nsk.sysdict.share.SysDictTest$Worker.run(SysDictTest.java:159)
at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:119)
at java.base/java.lang.Thread.runWith(Thread.java:1588)
... 1 more
The test does not consider the caused by exception.
Output
The level = 3 the height = 4
Stress time: 30 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
Starting Thread[#32,nsk.sysdict.share.SysDictTest$Worker@43e11ef7,5,MainThreadGroup]
Starting Thread[#33,nsk.sysdict.share.SysDictTest$Worker@7507fd3f,5,MainThreadGroup]
Starting Thread[#34,nsk.sysdict.share.SysDictTest$Worker@3e5a53ce,5,MainThreadGroup]
Starting Thread[#35,nsk.sysdict.share.SysDictTest$Worker@836ab86,5,MainThreadGroup]
Starting Thread[#36,nsk.sysdict.share.SysDictTest$Worker@e205a01,5,MainThreadGroup]
Starting Thread[#37,nsk.sysdict.share.SysDictTest$Worker@4404b0ff,5,MainThreadGroup]
Starting Thread[#38,nsk.sysdict.share.SysDictTest$Worker@28ac4f92,5,MainThreadGroup]
Starting Thread[#39,nsk.sysdict.share.SysDictTest$Worker@15fbab9a,5,MainThreadGroup]
Starting Thread[#40,nsk.sysdict.share.SysDictTest$Worker@19071b76,5,MainThreadGroup]
Starting Thread[#41,nsk.sysdict.share.SysDictTest$Worker@7865c3e1,5,MainThreadGroup]
Starting Thread[#42,nsk.sysdict.share.SysDictTest$Worker@327fc3a0,5,MainThreadGroup]
Starting Thread[#43,nsk.sysdict.share.SysDictTest$Worker@7a90090e,5,MainThreadGroup]
Starting Thread[#44,nsk.sysdict.share.SysDictTest$Worker@5bed6181,5,MainThreadGroup]
Starting Thread[#45,nsk.sysdict.share.SysDictTest$Worker@dc1dbd6,5,MainThreadGroup]
Starting Thread[#46,nsk.sysdict.share.SysDictTest$Worker@41ef7b0d,5,MainThreadGroup]
Starting Thread[#47,nsk.sysdict.share.SysDictTest$Worker@3b4dd247,5,MainThreadGroup]
Starting Thread[#48,nsk.sysdict.share.SysDictTest$Worker@b9c5dc6,5,MainThreadGroup]
Starting Thread[#49,nsk.sysdict.share.SysDictTest$Worker@8802808,5,MainThreadGroup]
Starting Thread[#50,nsk.sysdict.share.SysDictTest$Worker@328d0d06,5,MainThreadGroup]
Starting Thread[#51,nsk.sysdict.share.SysDictTest$Worker@67073efa,5,MainThreadGroup]
Starting Thread[#52,nsk.sysdict.share.SysDictTest$Worker@e9c2db1,5,MainThreadGroup]
Starting Thread[#53,nsk.sysdict.share.SysDictTest$Worker@7559402,5,MainThreadGroup]
Starting Thread[#54,nsk.sysdict.share.SysDictTest$Worker@5dea5cd3,5,MainThreadGroup]
Starting Thread[#55,nsk.sysdict.share.SysDictTest$Worker@344597a,5,MainThreadGroup]
Exception in
nsk.sysdict.share.SysDictTest$Worker@327fc3a0
java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:256)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:196)
at nsk.sysdict.share.SysDictTest$Worker.run(SysDictTest.java:159)
at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:119)
at java.base/java.lang.Thread.run(Thread.java:1575)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
at java.base/java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2589)
at java.base/java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2339)
at java.base/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1176)
at java.base/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1105)
at java.base/jdk.internal.util.ReferencedKeyMap.removeStaleReferences(ReferencedKeyMap.java:336)
at java.base/jdk.internal.util.ReferencedKeyMap.get(ReferencedKeyMap.java:208)
at java.base/jdk.internal.util.ReferencedKeySet.get(ReferencedKeySet.java:173)
at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:401)
at java.base/java.lang.invoke.MethodType.methodType(MethodType.java:382)
at java.base/java.lang.invoke.MethodHandleNatives.findMethodHandleType(MethodHandleNatives.java:412)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:252)
... 4 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.OutOfMemoryError: Java heap space [in thread "nsk.sysdict.share.SysDictTest$Worker@7a90090e"]
at java.base/java.util.concurrent.ThreadLocalRandom.<clinit>(ThreadLocalRandom.java:318)
at java.base/java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2589)
at java.base/java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2339)
at java.base/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1176)
at java.base/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1105)
at java.base/jdk.internal.util.ReferencedKeyMap.removeStaleReferences(ReferencedKeyMap.java:336)
at java.base/jdk.internal.util.ReferencedKeyMap.get(ReferencedKeyMap.java:208)
at java.base/jdk.internal.util.ReferencedKeySet.get(ReferencedKeySet.java:173)
at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:401)
at java.base/java.lang.invoke.MethodType.methodType(MethodType.java:382)
at java.base/java.lang.invoke.MethodHandleNatives.findMethodHandleType(MethodHandleNatives.java:412)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:252)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:196)
at nsk.sysdict.share.SysDictTest$Worker.run(SysDictTest.java:159)
at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:119)
at java.base/java.lang.Thread.runWith(Thread.java:1588)
... 1 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:256)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:196)
at nsk.sysdict.share.SysDictTest$Worker.run(SysDictTest.java:159)
at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:119)
at java.base/java.lang.Thread.run(Thread.java:1575)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.util.concurrent.ThreadLocalRandom
at java.base/java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2589)
at java.base/java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2339)
at java.base/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1176)
at java.base/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1105)
at java.base/jdk.internal.util.ReferencedKeyMap.removeStaleReferences(ReferencedKeyMap.java:336)
at java.base/jdk.internal.util.ReferencedKeyMap.get(ReferencedKeyMap.java:208)
at java.base/jdk.internal.util.ReferencedKeySet.get(ReferencedKeySet.java:173)
at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:401)
at java.base/java.lang.invoke.MethodType.methodType(MethodType.java:382)
at java.base/java.lang.invoke.MethodHandleNatives.findMethodHandleType(MethodHandleNatives.java:412)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:252)
... 4 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.OutOfMemoryError: Java heap space [in thread "nsk.sysdict.share.SysDictTest$Worker@7a90090e"]
at java.base/java.util.concurrent.ThreadLocalRandom.<clinit>(ThreadLocalRandom.java:318)
at java.base/java.util.concurrent.ConcurrentHashMap.fullAddCount(ConcurrentHashMap.java:2589)
at java.base/java.util.concurrent.ConcurrentHashMap.addCount(ConcurrentHashMap.java:2339)
at java.base/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1176)
at java.base/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1105)
at java.base/jdk.internal.util.ReferencedKeyMap.removeStaleReferences(ReferencedKeyMap.java:336)
at java.base/jdk.internal.util.ReferencedKeyMap.get(ReferencedKeyMap.java:208)
at java.base/jdk.internal.util.ReferencedKeySet.get(ReferencedKeySet.java:173)
at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:401)
at java.base/java.lang.invoke.MethodType.methodType(MethodType.java:382)
at java.base/java.lang.invoke.MethodHandleNatives.findMethodHandleType(MethodHandleNatives.java:412)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:252)
at nsk.share.gc.gp.GarbageUtils.eatMemory(GarbageUtils.java:196)
at nsk.sysdict.share.SysDictTest$Worker.run(SysDictTest.java:159)
at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:119)
at java.base/java.lang.Thread.runWith(Thread.java:1588)
... 1 more