Home | History | Annotate | Download | only in fst

Lines Matching defs:GC

38   bool gc;          // enable GC
39 size_t gc_limit; // # of bytes allowed before GC
41 CacheOptions(bool g, size_t l) : gc(g), gc_limit(l) {}
43 : gc(FLAGS_fst_default_cache_gc),
94 // mark it as cached. If the 'gc' option is 'false', cached items have
95 // the extent of the FST - minimizing computation. If the 'gc' option
134 cache_first_state_(0), cache_gc_(opts.gc), cache_size_(0),
141 // Preserve gc parameters. If preserve_cache true, also preserves
244 GC(s, false);
277 GC(s, false);
443 // GC until at most cache_fraction * cache_limit_ bytes are cached.
447 void GC(StateId current, bool free_recent, float cache_fraction = 0.666);
449 // Setc/clears GC protection: if true, new states are protected
475 static const uint32 kCacheRecent = 0x0004; // Mark as visited since GC
476 static const uint32 kCacheProtect = 0x0008; // Mark state as GC protected
492 bool cache_gc_; // enable GC
494 size_t cache_limit_; // # of bytes allowed before GC
495 bool protect_; // Protect new states from GC
545 GC(s, false);
553 // protected) states that have not been accessed since the last GC
559 void CacheBaseImpl<S, C>::GC(typename S::Arc::StateId current,
563 VLOG(2) << "CacheImpl: Enter GC: object = " << Type() << "(" << this
586 GC(current, true);
593 FSTERROR() << "CacheImpl:GC: Unable to free all cached states";
595 VLOG(2) << "CacheImpl: Exit GC: object = " << Type() << "(" << this