-
Bug
-
Resolution: Fixed
-
P4
-
11, 17, 21, 22
-
b12
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8314921 | 21.0.1 | Aleksey Shipilev | P4 | Resolved | Fixed | b09 |
JDK-8314857 | 17.0.9 | Aleksey Shipilev | P4 | Resolved | Fixed | b05 |
$ CONF=linux-x86_64-server-fastdebug make test TEST=sun/tools/jhsdb/heapconfig/JMapHeapConfigTest.java TEST_VM_OPTS="-XX:+UseShenandoahGC"
STDERR:
java.lang.RuntimeException: Key 'G1HeapRegionSize' doesn't exists in jmap output
at JMapHeapConfigTest.compareValues(JMapHeapConfigTest.java:104)
at JMapHeapConfigTest.main(JMapHeapConfigTest.java:161)
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.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1570)
This happens because Shenandoah path does not print G1HeapRegionSize at all:
https://github.com/openjdk/jdk/blob/ed585d16b9069a678bb8633239ca87f64c956fdd/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/HeapSummary.java#L89-L93
STDERR:
java.lang.RuntimeException: Key 'G1HeapRegionSize' doesn't exists in jmap output
at JMapHeapConfigTest.compareValues(JMapHeapConfigTest.java:104)
at JMapHeapConfigTest.main(JMapHeapConfigTest.java:161)
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.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1570)
This happens because Shenandoah path does not print G1HeapRegionSize at all:
https://github.com/openjdk/jdk/blob/ed585d16b9069a678bb8633239ca87f64c956fdd/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/HeapSummary.java#L89-L93
- backported by
-
JDK-8314857 Shenandoah: sun/tools/jhsdb/heapconfig/JMapHeapConfigTest.java fails
- Resolved
-
JDK-8314921 Shenandoah: sun/tools/jhsdb/heapconfig/JMapHeapConfigTest.java fails
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/49ffbcf4
-
Commit openjdk/jdk21u/c17b5d75
-
Commit openjdk/jdk/812f475b
-
Review openjdk/jdk17u-dev/1676
-
Review openjdk/jdk21u/74
-
Review openjdk/jdk/15328
(3 links to)