diff options
-rw-r--r-- | src/thread_cache.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/thread_cache.h b/src/thread_cache.h index 7454688..09cfcef 100644 --- a/src/thread_cache.h +++ b/src/thread_cache.h @@ -69,11 +69,6 @@ class ThreadCache { // REQUIRES: Static::pageheap_lock is not held. static void DeleteCache(ThreadCache* heap); - // REQUIRES: Static::pageheap_lock is held - ThreadCache(); - // REQUIRES: Static::pageheap_lock is not held - ~ThreadCache(); - // Accessors (mostly just for printing stats) int freelist_length(uint32_t cl) const { return list_[cl].length(); } @@ -240,6 +235,11 @@ class ThreadCache { } }; + // REQUIRES: Static::pageheap_lock is held + ThreadCache(); + // REQUIRES: Static::pageheap_lock is not held + ~ThreadCache(); + // Gets and returns an object from the central cache, and, if possible, // also adds some objects of that size class to this thread cache. void* FetchFromCentralCache(uint32_t cl, int32_t byte_size, |