-
Bug
-
Resolution: Unresolved
-
P4
-
22
Test
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadTest.java
failed with OOME when executed with
'-Xcheck:jni -XX:+UseZGC -XX:+ZGenerational'
The log:
Going to run: Allocator0
Going to run: Allocator1
Going to run: Allocator2
Going to run: Allocator3
Going to run: Allocator4
Starting threads
Waiting for threads to be done
Running: Allocator4
Running: Allocator3
Running: Allocator0
Running: Allocator1
Running: Allocator2
java.lang.OutOfMemoryError: Java heap space
at java.base/java.util.Arrays.copyOf(Arrays.java:3481)
at java.base/java.util.ArrayList.grow(ArrayList.java:238)
at java.base/java.util.ArrayList.grow(ArrayList.java:245)
at java.base/java.util.ArrayList.add(ArrayList.java:484)
at java.base/java.util.ArrayList.add(ArrayList.java:497)
at MyPackage.Allocator.helper(ThreadInformation.java:129)
at MyPackage.Allocator.recursiveWrapper(ThreadInformation.java:143)
at MyPackage.Allocator.recursiveWrapper(ThreadInformation.java:140)
at MyPackage.Allocator.run(ThreadInformation.java:158)
at java.base/java.lang.Thread.runWith(Thread.java:1583)
at java.base/java.lang.Thread.run(Thread.java:1570)
STATUS:Failed.`main' threw exception: java.lang.OutOfMemoryError: Java heap space
serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitorThreadTest.java
failed with OOME when executed with
'-Xcheck:jni -XX:+UseZGC -XX:+ZGenerational'
The log:
Going to run: Allocator0
Going to run: Allocator1
Going to run: Allocator2
Going to run: Allocator3
Going to run: Allocator4
Starting threads
Waiting for threads to be done
Running: Allocator4
Running: Allocator3
Running: Allocator0
Running: Allocator1
Running: Allocator2
java.lang.OutOfMemoryError: Java heap space
at java.base/java.util.Arrays.copyOf(Arrays.java:3481)
at java.base/java.util.ArrayList.grow(ArrayList.java:238)
at java.base/java.util.ArrayList.grow(ArrayList.java:245)
at java.base/java.util.ArrayList.add(ArrayList.java:484)
at java.base/java.util.ArrayList.add(ArrayList.java:497)
at MyPackage.Allocator.helper(ThreadInformation.java:129)
at MyPackage.Allocator.recursiveWrapper(ThreadInformation.java:143)
at MyPackage.Allocator.recursiveWrapper(ThreadInformation.java:140)
at MyPackage.Allocator.run(ThreadInformation.java:158)
at java.base/java.lang.Thread.runWith(Thread.java:1583)
at java.base/java.lang.Thread.run(Thread.java:1570)
STATUS:Failed.`main' threw exception: java.lang.OutOfMemoryError: Java heap space