-
Bug
-
Resolution: Fixed
-
P4
-
23
-
b18
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8340155 | 21.0.6 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
java.lang.Error: Expected VM to crash
at TestCDSVMCrash.main(TestCDSVMCrash.java:59)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:1575)
This part of the test looks suspicious to me:
// This should guarantee to throw:
// java.lang.OutOfMemoryError: Requested array size exceeds VM limit
try {
Object[] oa = new Object[Integer.MAX_VALUE];
throw new Error("OOME not triggered");
} catch (OutOfMemoryError err) {
throw new Error("OOME didn't abort JVM!");
}
Escape analysis can eliminate the allocation altogether.
This started failing with https://bugs.openjdk.org/browse/JDK-8321550 according to [~mikael].
at TestCDSVMCrash.main(TestCDSVMCrash.java:59)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:1575)
This part of the test looks suspicious to me:
// This should guarantee to throw:
// java.lang.OutOfMemoryError: Requested array size exceeds VM limit
try {
Object[] oa = new Object[Integer.MAX_VALUE];
throw new Error("OOME not triggered");
} catch (OutOfMemoryError err) {
throw new Error("OOME didn't abort JVM!");
}
Escape analysis can eliminate the allocation altogether.
This started failing with https://bugs.openjdk.org/browse/JDK-8321550 according to [~mikael].
- backported by
-
JDK-8340155 TestCDSVMCrash fails on libgraal
- Resolved
- relates to
-
JDK-8321550 Update several runtime/cds tests to use vm flags or mark as flagless
- Resolved
- links to
-
Commit openjdk/jdk/6439375b
-
Commit(master) openjdk/jdk21u-dev/58cc0a24
-
Review openjdk/jdk/18660
-
Review(master) openjdk/jdk21u-dev/969
(1 links to)