diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-06-14 05:50:39 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-06-14 05:50:42 +0000 |
commit | d38b67c9892b603f57a6b51a1b9d7f4e610158aa (patch) | |
tree | 4bb95ce9f7733f8b9e54b6e80eaeb3751b4e78a8 /runtime/jit/jit_code_cache.h | |
parent | af14a86fb40f83b3d76185dd8bd09c1e7c409d2f (diff) | |
parent | eced692a34d2cf63d584c703704592984cc50394 (diff) |
Merge "ART: Add JIT cache race test"
Diffstat (limited to 'runtime/jit/jit_code_cache.h')
-rw-r--r-- | runtime/jit/jit_code_cache.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/jit/jit_code_cache.h b/runtime/jit/jit_code_cache.h index 9ecc876716..daa1d616a6 100644 --- a/runtime/jit/jit_code_cache.h +++ b/runtime/jit/jit_code_cache.h @@ -171,6 +171,13 @@ class JitCodeCache { REQUIRES(!lock_) REQUIRES_SHARED(Locks::mutator_lock_); + // Removes method from the cache for testing purposes. The caller + // must ensure that all threads are suspended and the method should + // not be in any thread's stack. + bool RemoveMethod(ArtMethod* method, bool release_memory) + REQUIRES(!lock_) + REQUIRES(Locks::mutator_lock_); + // Remove all methods in our cache that were allocated by 'alloc'. void RemoveMethodsIn(Thread* self, const LinearAlloc& alloc) REQUIRES(!lock_) |