diff options
Diffstat (limited to 'runtime/jit/jit_code_cache.h')
-rw-r--r-- | runtime/jit/jit_code_cache.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/jit/jit_code_cache.h b/runtime/jit/jit_code_cache.h index afff657880..131446c484 100644 --- a/runtime/jit/jit_code_cache.h +++ b/runtime/jit/jit_code_cache.h @@ -83,6 +83,9 @@ class JitCodeCache { // Return true if the code cache contains this pc. bool ContainsPc(const void* pc) const; + // Return true if the code cache contains this method. + bool ContainsMethod(ArtMethod* method) REQUIRES(!lock_); + // Reserve a region of data of size at least "size". Returns null if there is no more room. uint8_t* ReserveData(Thread* self, size_t size) SHARED_REQUIRES(Locks::mutator_lock_) @@ -163,6 +166,12 @@ class JitCodeCache { // Free in the mspace allocations taken by 'method'. void FreeCode(const void* code_ptr, ArtMethod* method) REQUIRES(lock_); + // Number of bytes allocated in the code cache. + size_t CodeCacheSizeLocked() REQUIRES(lock_); + + // Number of bytes allocated in the data cache. + size_t DataCacheSizeLocked() REQUIRES(lock_); + // Lock for guarding allocations, collections, and the method_code_map_. Mutex lock_; // Condition to wait on during collection. |