bug fix: race condition with garbage collector on soft reference
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2776 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
2fc776af9c
commit
54e2baf510
|
@ -70,9 +70,10 @@ public class ReferenceCleanser {
|
||||||
if (occupancy < OCCUPANCY_TRIGGER) {
|
if (occupancy < OCCUPANCY_TRIGGER) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (getAnalysisCache() != null) {
|
AnalysisCache cache = getAnalysisCache();
|
||||||
getAnalysisCache().getSSACache().wipe();
|
if (cache != null) {
|
||||||
getAnalysisCache().getCFGCache().wipe();
|
cache.getSSACache().wipe();
|
||||||
|
cache.getCFGCache().wipe();
|
||||||
}
|
}
|
||||||
IClassHierarchy cha = getClassHierarchy();
|
IClassHierarchy cha = getClassHierarchy();
|
||||||
if (cha != null) {
|
if (cha != null) {
|
||||||
|
|
Loading…
Reference in New Issue