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:52 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-08-14 18:52:52 +0000
commit6b1382dcb24a44e552daaa8dca82eb63d8bf6b11 (patch)
treebf8ec701ee2d1455f9d87e53241a55b46d1d07c5 /runtime/jit/jit_code_cache.cc
parenta5d5fa3955ce7fefb11e12753367e0382d6765d5 (diff)
parent7ef52f75dd6e981e1e8c7567f593c197e8a94dcc (diff)
Merge "Revert "ART: Use proxy ArtMethod's data_ to store the interface method.""
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(),