Skip to content

Commit 698d14e

Browse files
committed
initialization of isGCRoot fixed
1 parent 019a0db commit 698d14e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visualvm/heapviewer/src/org/graalvm/visualvm/heapviewer/java/InstanceNode.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public String getName(Heap heap) {
9393
return computeName(heap, instance, Collections.EMPTY_LIST);
9494
} else {
9595
Collection<GCRoot> gcRoots = heap.getGCRoots(instance);
96-
isGCRoot = gcRoots.isEmpty();
96+
isGCRoot = !gcRoots.isEmpty();
9797
name = computeName(heap, instance, gcRoots);
9898
}
9999
}

0 commit comments

Comments
 (0)