-
Bug
-
Resolution: Fixed
-
P4
-
13
-
b06
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8315086 | 11.0.21 | Martin Doerr | P4 | Resolved | Fixed | b05 |
test/hotspot/jtreg/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java fails after JDK-8217612 as below:
CompressedClassSpaceSizeInJmapHeap.stderr.txt
----------------------
Exception in thread "main" java.lang.NumberFormatException: For input string: "18446744073709547520"
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:68)
at java.base/java.lang.Long.parseLong(Long.java:699)
at java.base/java.lang.Long.parseLong(Long.java:824)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.HeapSummary.getFlagValue(HeapSummary.java:298)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.HeapSummary.run(HeapSummary.java:86)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.run(JMap.java:115)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:260)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:223)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.main(JMap.java:176)
at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJMAP(SALauncher.java:326)
at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:455)
----------------------
JDK-8217612 handles flag value as unsigned if its type is uintx, size_t, or uint64_t. We should use Long::parseUnsignedLong rather than parseLong().
CompressedClassSpaceSizeInJmapHeap.stderr.txt
----------------------
Exception in thread "main" java.lang.NumberFormatException: For input string: "18446744073709547520"
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:68)
at java.base/java.lang.Long.parseLong(Long.java:699)
at java.base/java.lang.Long.parseLong(Long.java:824)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.HeapSummary.getFlagValue(HeapSummary.java:298)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.HeapSummary.run(HeapSummary.java:86)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.run(JMap.java:115)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:260)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:223)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.main(JMap.java:176)
at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJMAP(SALauncher.java:326)
at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:455)
----------------------
- backported by
-
JDK-8315086 CompressedClassSpaceSizeInJmapHeap fails after JDK-8217612
- Resolved
- relates to
-
JDK-8217612 (CL)HSDB cannot show some JVM flags
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/81806b78
-
Review openjdk/jdk11u-dev/2096
-
Review(pr/431) openjdk/jdk8u-dev/433