Skip to content

Commit 7dd3096

Browse files
committed
GH-113: make sure the ongoing children computation is restarted when sorting changes
1 parent f134a20 commit 7dd3096

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

visualvm/heapviewer/src/org/graalvm/visualvm/heapviewer/model/HeapViewerNode.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ public final void willBeSorted() {
302302
}
303303

304304
private boolean updateChildrenOnSort() {
305+
// GH-113: make sure the ongoing children computation is restarted when sorting changes
306+
synchronized (this) { if (currentWorker != null) return true; }
307+
305308
return children != null && children.length > 1 && children[children.length - 1] instanceof MoreNodesNode;
306309
}
307310

0 commit comments

Comments
 (0)