diff options
author | 2016-09-27 18:43:30 -0700 | |
---|---|---|
committer | 2016-09-29 17:31:09 -0700 | |
commit | 0795f23920ee9aabf28e45c63cd592dcccf00216 (patch) | |
tree | ff3f880c5e84f3316532b47d0e9a7729ade848ac /runtime/native_bridge_art_interface.cc | |
parent | d1224dce59eb0019507e41da5e10f12dda66bee4 (diff) |
Clean up ScopedThreadStateChange to use ObjPtr
Also fixed inclusion of -inl.h files in .h files by adding
scoped_object_access-inl.h and scoped_fast_natvie_object_access-inl.h
Changed AddLocalReference / Decode to use ObjPtr.
Changed libartbenchmark to be debug to avoid linkage errors.
Bug: 31113334
Test: test-art-host
Change-Id: I4d2e160483a29d21e1e0e440585ed328b9811483
Diffstat (limited to 'runtime/native_bridge_art_interface.cc')
-rw-r--r-- | runtime/native_bridge_art_interface.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/native_bridge_art_interface.cc b/runtime/native_bridge_art_interface.cc index 155c008e85..059dc5adcb 100644 --- a/runtime/native_bridge_art_interface.cc +++ b/runtime/native_bridge_art_interface.cc @@ -26,7 +26,7 @@ #include "base/macros.h" #include "dex_file-inl.h" #include "mirror/class-inl.h" -#include "scoped_thread_state_change.h" +#include "scoped_thread_state_change-inl.h" #include "sigchain.h" namespace art { @@ -43,7 +43,7 @@ static uint32_t GetNativeMethodCount(JNIEnv* env, jclass clazz) { } ScopedObjectAccess soa(env); - mirror::Class* c = soa.Decode<mirror::Class*>(clazz); + ObjPtr<mirror::Class> c = soa.Decode<mirror::Class>(clazz); uint32_t native_method_count = 0; for (auto& m : c->GetMethods(kRuntimePointerSize)) { @@ -58,7 +58,7 @@ static uint32_t GetNativeMethods(JNIEnv* env, jclass clazz, JNINativeMethod* met return 0; } ScopedObjectAccess soa(env); - mirror::Class* c = soa.Decode<mirror::Class*>(clazz); + ObjPtr<mirror::Class> c = soa.Decode<mirror::Class>(clazz); uint32_t count = 0; for (auto& m : c->GetMethods(kRuntimePointerSize)) { |