diff options
Diffstat (limited to 'runtime/jit/jit.h')
-rw-r--r-- | runtime/jit/jit.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/jit/jit.h b/runtime/jit/jit.h index e44e1c94e7..d272a18919 100644 --- a/runtime/jit/jit.h +++ b/runtime/jit/jit.h @@ -326,7 +326,8 @@ class Jit { // Called by the compiler to know whether it can directly encode the // method/class/string. - bool CanEncodeMethod(ArtMethod* method, bool is_for_shared_region) const; + bool CanEncodeMethod(ArtMethod* method, bool is_for_shared_region) const + REQUIRES_SHARED(Locks::mutator_lock_); bool CanEncodeClass(ObjPtr<mirror::Class> cls, bool is_for_shared_region) const REQUIRES_SHARED(Locks::mutator_lock_); bool CanEncodeString(ObjPtr<mirror::String> string, bool is_for_shared_region) const |