File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
visualvm/libs.profiler/lib.profiler/src/org/graalvm/visualvm/lib/jfluid/heap Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -71,16 +71,17 @@ String getStringByID(long stringID) {
71
71
}
72
72
73
73
private String createStringByID (long stringID ) {
74
- return getString (getStringOffsetByID (stringID ));
74
+ long start = getStringOffsetByID (stringID );
75
+
76
+ if (start == -1 ) {
77
+ return "<unresolved string 0x" +Long .toHexString (stringID )+">" ; // NOI18N
78
+ }
79
+ return getString (start );
75
80
}
76
81
77
82
private String getString (long start ) {
78
83
HprofByteBuffer dumpBuffer = getDumpBuffer ();
79
84
80
- if (start == -1 ) {
81
- return "<unknown string>" ; // NOI18N
82
- }
83
-
84
85
int len = dumpBuffer .getInt (start + lengthOffset );
85
86
byte [] chars = new byte [len - dumpBuffer .getIDSize ()];
86
87
dumpBuffer .get (start + UTF8CharsOffset , chars );
You can’t perform that action at this time.
0 commit comments