summaryrefslogtreecommitdiff
path: root/runtime/jit/jit_code_cache.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2017-07-28 12:55:17 +0100
committer Vladimir Marko <vmarko@google.com> 2017-08-14 14:06:49 +0100
commit0888cf1821d6622fd623db31000be19b9365f81c (patch)
treefc1e251066fa30ffd475b8a51c15f17bc976b13f /runtime/jit/jit_code_cache.h
parentf9fd236b047a4851f24a3829acfd7e3340676305 (diff)
ART: Use proxy ArtMethod's data_ to store the interface method.
This immensely simplifies the interface method retrieval and removes one dependency on dex_cache_resolved_methods_. We may later consider removing that member if we deem the memory savings worth the performance impact. Test: m test-art-host-gtest Test: testrunner.py --host Test: testrunner.py --host --jit Change-Id: Id76349c69e4c4dea4e3b297bd504db8f98f1b7cc
Diffstat (limited to 'runtime/jit/jit_code_cache.h')
-rw-r--r--runtime/jit/jit_code_cache.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/jit/jit_code_cache.h b/runtime/jit/jit_code_cache.h
index daa1d616a6..9790e3aa43 100644
--- a/runtime/jit/jit_code_cache.h
+++ b/runtime/jit/jit_code_cache.h
@@ -323,7 +323,8 @@ class JitCodeCache {
REQUIRES_SHARED(Locks::mutator_lock_);
bool CheckLiveCompiledCodeHasProfilingInfo()
- REQUIRES(lock_);
+ REQUIRES(lock_)
+ REQUIRES_SHARED(Locks::mutator_lock_);
void FreeCode(uint8_t* code) REQUIRES(lock_);
uint8_t* AllocateCode(size_t code_size) REQUIRES(lock_);