Skip to content

Commit

Permalink
More accurate treating of blacklisted links in cluster analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
aragozin committed Apr 23, 2015
1 parent 0eb49a7 commit 859533b
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -272,6 +272,7 @@ private void walk(Cluster details, Instance i, StringBuilder path, int depth, bo
return;
}
if (blacklist.contains(i.getJavaClass().getName())) {
ignoreRefs.set(i.getInstanceId(), true);
return;
}
if (details.objects.getAndSet(i.getInstanceId(), true)) {
Expand Down Expand Up @@ -366,12 +367,13 @@ private void widthWalk(Cluster details, Instance root, boolean accountShared) {
continue;
}

if (details.objects.getAndSet(id, true)) {
Instance i = heap.getInstanceByID(id);
if (blacklist.contains(i.getJavaClass().getName())) {
ignoreRefs.set(id, true);
continue;
}

Instance i = heap.getInstanceByID(id);
if (blacklist.contains(i.getJavaClass().getName())) {
if (details.objects.getAndSet(id, true)) {
continue;
}

Expand Down

0 comments on commit 859533b

Please sign in to comment.