diff options
author | 2017-04-19 13:20:19 -0700 | |
---|---|---|
committer | 2017-04-19 13:20:51 -0700 | |
commit | 77c14157ad11aa01b696518c791c64a978e54cb1 (patch) | |
tree | 7d8f7de24962423f1f35c00ee5475239eaba249d /runtime/fault_handler.cc | |
parent | 1cfe8728e0b7186b194d5b38f37be8461a305e43 (diff) |
fault_handler: hopefully fix darwin build.
Test: none
Change-Id: I08adf266c6287a289d213a0b1fa854f223fec72d
Diffstat (limited to 'runtime/fault_handler.cc')
-rw-r--r-- | runtime/fault_handler.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/fault_handler.cc b/runtime/fault_handler.cc index 4ef3a67b96..a200948139 100644 --- a/runtime/fault_handler.cc +++ b/runtime/fault_handler.cc @@ -108,11 +108,12 @@ static bool SafeVerifyClassClass(mirror::Class* cls) REQUIRES_SHARED(Locks::muta #else -static mirror::Class* SafeGetDeclaringClass(ArtMethod* method_obj) { +static mirror::Class* SafeGetDeclaringClass(ArtMethod* method_obj) + REQUIRES_SHARED(Locks::mutator_lock_) { return method_obj->GetDeclaringClassUnchecked<kWithoutReadBarrier>(); } -static bool SafeVerifyClassClass(ArtClass* cls) { +static bool SafeVerifyClassClass(mirror::Class* cls) REQUIRES_SHARED(Locks::mutator_lock_) { return VerifyClassClass(cls); } #endif |