-
Bug
-
Resolution: Fixed
-
P4
-
21, 22, 23
-
b16
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8329562 | 21.0.4 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
I think the hprof test library is confused about Strings with -XX:-CompactStrings.
% time CONF=macosx-aarch64-server-fastdebug make test TEST=serviceability/HeapDump TEST_VM_OPTS=-XX:-CompactStrings
STDERR:
java.lang.RuntimeException: value for field A.s not found: expected true, was false
at jdk.test.lib.Asserts.fail(Asserts.java:691)
at jdk.test.lib.Asserts.assertTrue(Asserts.java:543)
at FieldsInInstanceTest.verifyDump(FieldsInInstanceTest.java:167)
at FieldsInInstanceTest.main(FieldsInInstanceTest.java:111)
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)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
% time CONF=macosx-aarch64-server-fastdebug make test TEST=serviceability/HeapDump TEST_VM_OPTS=-XX:-CompactStrings
STDERR:
java.lang.RuntimeException: value for field A.s not found: expected true, was false
at jdk.test.lib.Asserts.fail(Asserts.java:691)
at jdk.test.lib.Asserts.assertTrue(Asserts.java:543)
at FieldsInInstanceTest.verifyDump(FieldsInInstanceTest.java:167)
at FieldsInInstanceTest.main(FieldsInInstanceTest.java:111)
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)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
- backported by
-
JDK-8329562 hprof tests fail with -XX:-CompactStrings
- Resolved