Skip to content

Commit 81806b7

Browse files
toshiogataTheRealMDoerr
authored andcommittedAug 28, 2023
8217850: CompressedClassSpaceSizeInJmapHeap fails after JDK-8217612
Backport-of: 49c91b7f9522a991bcac789b9fcccfee8bf08b5d
1 parent 2bfbe31 commit 81806b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/tools/HeapSummary.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -293,6 +293,8 @@ private long getFlagValue(String name, Map flagMap) {
293293
if (f != null) {
294294
if (f.isBool()) {
295295
return f.getBool()? 1L : 0L;
296+
} else if (f.isUIntx() || f.isSizet() || f.isUint64t()) {
297+
return Long.parseUnsignedLong(f.getValue());
296298
} else {
297299
return Long.parseLong(f.getValue());
298300
}

0 commit comments

Comments
 (0)
Please sign in to comment.