Home
last modified time | relevance | path

Searched refs:cache_size_ (Results 1 – 7 of 7) sorted by relevance

/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dcache.h73 cache_gc_(FLAGS_fst_default_cache_gc), cache_size_(0), in CacheBaseImpl()
81 cache_first_state_(0), cache_gc_(opts.gc), cache_size_(0), in CacheBaseImpl()
139 cache_size_ += sizeof(S) + in ExtendState()
148 cache_size_ += sizeof(S); in ExtendState()
149 if (cache_size_ > cache_limit_) in ExtendState()
192 cache_size_ += arcs.capacity() * sizeof(Arc); in SetArcs()
193 if (cache_size_ > cache_limit_) in SetArcs()
278 << ", cache size = " << cache_size_ in GC()
286 if (cache_size_ > cache_target && state->ref_count == 0 && in GC()
288 cache_size_ -= sizeof(S) + state->arcs.capacity() * sizeof(Arc); in GC()
[all …]
/external/openfst/src/include/fst/
Dcache.h120 cache_gc_(FLAGS_fst_default_cache_gc), cache_size_(0), in cache_start_()
130 cache_first_state_(0), cache_gc_(opts.gc), cache_size_(0), in cache_start_()
140 cache_first_state_(0), cache_gc_(impl.cache_gc_), cache_size_(0), in CacheBaseImpl()
202 cache_size_ += sizeof(S) + in ExtendState()
211 cache_size_ += sizeof(S); in ExtendState()
212 if (cache_size_ > cache_limit_) in ExtendState()
250 cache_size_ += sizeof(Arc); in AddArc()
251 if (cache_size_ > cache_limit_) in AddArc()
282 cache_size_ += arcs.capacity() * sizeof(Arc); in SetArcs()
283 if (cache_size_ > cache_limit_) in SetArcs()
[all …]
Daccumulator.h350 : cache_gc_(gc), cache_limit_(gc_limit), cache_size_(0) {} in CacheLogAccumulatorData()
372 if (cache_gc_ && cache_size_ >= cache_limit_) in AddWeights()
376 cache_size_ += weights->capacity() * sizeof(double); in AddWeights()
399 while (it != cache_.end() && cache_size_ > cache_target) { in GC()
402 cache_size_ -= cs.weights->capacity() * sizeof(double); in GC()
410 if (!free_recent && cache_size_ > cache_target) in GC()
417 size_t cache_size_; // # of bytes allowed before GC variable
/external/chromium/app/sql/
Dconnection.h126 void set_cache_size(int cache_size) { cache_size_ = cache_size; } in set_cache_size()
355 int cache_size_; variable
Dconnection.cc91 cache_size_(0), in Connection()
376 if (cache_size_ != 0) { in OpenInternal()
377 const std::string sql = StringPrintf("PRAGMA cache_size=%d", cache_size_); in OpenInternal()
/external/webkit/Source/JavaScriptCore/wtf/
DFastMalloc.cpp2422 int32_t cache_size_; member in WTF::TCMalloc_Central_FreeList
2582 cache_size_ = 1; in Init()
2584 ASSERT(cache_size_ <= kNumTransferEntries); in Init()
2658 if (used_slots_ < cache_size_) return true; in MakeCacheSpace()
2660 if (cache_size_ == kNumTransferEntries) return false; in MakeCacheSpace()
2665 cache_size_++; in MakeCacheSpace()
2685 if (cache_size_ == 0) return false; in ShrinkCache()
2687 if (force == false && used_slots_ == cache_size_) return false; in ShrinkCache()
2694 ASSERT(used_slots_ <= cache_size_); in ShrinkCache()
2695 ASSERT(0 <= cache_size_); in ShrinkCache()
[all …]
/external/valgrind/tsan/
Dthread_sanitizer.cc3959 RecentSegmentsCache(int cache_size) : cache_size_(cache_size) {} in RecentSegmentsCache()
3969 ShortenQueue(cache_size_); in Push()
4028 size_t cache_size_; member