diff options
Diffstat (limited to 'runtime/jit/jit_code_cache.h')
-rw-r--r-- | runtime/jit/jit_code_cache.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/jit/jit_code_cache.h b/runtime/jit/jit_code_cache.h index 2d2f841360..84b56f1247 100644 --- a/runtime/jit/jit_code_cache.h +++ b/runtime/jit/jit_code_cache.h @@ -359,8 +359,10 @@ class JitCodeCache { // Visit GC roots (except j.l.Class and j.l.String) held by JIT-ed code. template<typename RootVisitorType> - EXPORT void VisitRootTables(ArtMethod* method, - RootVisitorType& visitor) NO_THREAD_SAFETY_ANALYSIS; + EXPORT void VisitRootTables(ArtMethod* method, RootVisitorType& visitor) + REQUIRES(Locks::heap_bitmap_lock_) + REQUIRES(!Locks::jit_mutator_lock_) + REQUIRES_SHARED(Locks::mutator_lock_); void SweepRootTables(IsMarkedVisitor* visitor) REQUIRES(!Locks::jit_lock_) |