OSDN Git Service

fault_handler: hopefully fix darwin build.
authorJosh Gao <jmgao@google.com>
Wed, 19 Apr 2017 20:20:19 +0000 (13:20 -0700)
committerJosh Gao <jmgao@google.com>
Wed, 19 Apr 2017 20:20:51 +0000 (13:20 -0700)
Test: none
Change-Id: I08adf266c6287a289d213a0b1fa854f223fec72d

runtime/fault_handler.cc

index 4ef3a67..a200948 100644 (file)
@@ -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