Home | History | Annotate | Download | only in common

Lines Matching defs:cache

75     // cache constructor.
156 // Use a loop in case cache items that are flushed held hard references to
157 // other cache items making those additional cache items eligible for
167 const UnifiedCache *cache = getInstance(status);
169 fprintf(stderr, "Unified Cache: Error fetching cache.\n");
172 cache->dumpContents();
180 // Dumps content of cache.
182 // On exit, cache contents dumped to stderr.
197 "Unified Cache: Key '%s', error %d, value %p, total refcount %d, soft refcount %d\n",
205 fprintf(stderr, "Unified Cache: %d out of a total of %d still have hard references\n", cnt, uhash_count(fHashtable));
213 // Now all that should be left in the cache are entries that refer to
214 // each other and entries with hard references from outside the cache.
215 // Nothing we can do about these so proceed to wipe out the cache.
222 // Returns the next element in the cache round robin style.
234 // Flushes the contents of the cache. If cache values hold references to other
235 // cache values then _flush should be called in a loop until it returns FALSE.
239 // Returns TRUE if any value in cache was flushed or FALSE otherwise.
273 // 10 entries in the cache round robin style evicting them if they are eligible.
295 // Places a new value and creationStatus in the cache for the given key.
296 // On entry, gCacheMutex must be held. key must not exist in the cache.
322 // Places value and status at key if there is no value at key or if cache
327 // On exit, value and status are changed to what was already in the cache if
329 // unchanged in which case they are placed in the cache on a best-effort basis.
353 // Attempts to fetch value and status for key from cache.
382 // Gets value out of cache.
385 // On exit. value and status set to what is in cache at key or on cache
388 // value and status to the cache. If createObject() fails to create a value,
389 // gNoValue is stored in cache, and value is set to NULL. Caller must call
433 // Register a master cache entry.
436 // entry, and value registered with cache so that subsequent calls to
508 // Since we have the cache lock, calling regular SharedObject methods
510 // the cache mutex.
522 // Since we have the cache lock, calling regular SharedObject methods
524 // the cache mutex.
549 // one reference (The one reference being from the cache itself).