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:
sjfink 2008-05-02 01:09:43 +00:00
parent 2fc776af9c
commit 54e2baf510
1 changed files with 4 additions and 3 deletions

View File

@ -70,9 +70,10 @@ public class ReferenceCleanser {
if (occupancy < OCCUPANCY_TRIGGER) {
return;
}
if (getAnalysisCache() != null) {
getAnalysisCache().getSSACache().wipe();
getAnalysisCache().getCFGCache().wipe();
AnalysisCache cache = getAnalysisCache();
if (cache != null) {
cache.getSSACache().wipe();
cache.getCFGCache().wipe();
}
IClassHierarchy cha = getClassHierarchy();
if (cha != null) {