public void clearCaches ( ) { try { FSTInputStream . cachedBuffer . set ( null ) ; while ( ! cacheLock . compareAndSet ( false , true ) ) { // empty } cachedObjects . clear ( ) ; } finally { cacheLock . set ( false ) ; } }
clear cached softref s and ThreadLocal .