summaryrefslogtreecommitdiff
path: root/runtime/jit/jit_code_cache.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2017-08-14 18:52:32 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2017-08-14 18:52:32 +0000
commit7ef52f75dd6e981e1e8c7567f593c197e8a94dcc (patch)
tree9685b783f628e290c6307d6ead024aac749a11ab /runtime/jit/jit_code_cache.cc
parent0888cf1821d6622fd623db31000be19b9365f81c (diff)
Revert "ART: Use proxy ArtMethod's data_ to store the interface method."
Broke a few tests with: +dalvikvm64 F 08-14 18:36:32 136697 136697 art_method-inl.h:392] Check failed: interface_method->GetDeclaringClass()->IsAssignableFrom(GetDeclaringClass()) This reverts commit 0888cf1821d6622fd623db31000be19b9365f81c. Change-Id: Idc93b6686392f9dfeca3bc11bd22104948fd9fd3
Diffstat (limited to 'runtime/jit/jit_code_cache.cc')
-rw-r--r--runtime/jit/jit_code_cache.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/jit/jit_code_cache.cc b/runtime/jit/jit_code_cache.cc
index 40a5212629..47ace7fa71 100644
--- a/runtime/jit/jit_code_cache.cc
+++ b/runtime/jit/jit_code_cache.cc
@@ -1169,6 +1169,7 @@ void JitCodeCache::DoCollection(Thread* self, bool collect_profiling_info) {
RemoveUnmarkedCode(self);
if (collect_profiling_info) {
+ ScopedThreadSuspension sts(self, kSuspended);
MutexLock mu(self, lock_);
// Free all profiling infos of methods not compiled nor being compiled.
auto profiling_kept_end = std::remove_if(profiling_infos_.begin(), profiling_infos_.end(),