Class ReferenceCleanser

java.lang.Object
com.ibm.wala.core.util.ref.ReferenceCleanser

public class ReferenceCleanser extends Object
For some reason (either a bug in our code that defeats soft references, or a bad policy in the GC), leaving soft reference caches to clear themselves out doesn't work. Help it out.

It's unfortunate that this class exists.

  • Constructor Details

    • ReferenceCleanser

      public ReferenceCleanser()
  • Method Details

    • registerClassHierarchy

      public static void registerClassHierarchy(IClassHierarchy cha)
    • registerCache

      public static void registerCache(IAnalysisCacheView cache)
    • clearSoftCaches

      public static void clearSoftCaches()
      A debugging aid. TODO: move this elsewhere