diff options
author | Andreas Gampe <agampe@google.com> | 2016-11-07 16:48:23 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2016-11-07 19:45:48 -0800 |
commit | 13b27842e88ccf1a42807c92daeb108e867dc4cd (patch) | |
tree | d95968f678070058ec084376d561c7ed4f1bcff3 /runtime/native_bridge_art_interface.cc | |
parent | 689a331aded82340d2ab144d0adb9bbbbd4b53ff (diff) | |
download | art-13b27842e88ccf1a42807c92daeb108e867dc4cd.tar.gz art-13b27842e88ccf1a42807c92daeb108e867dc4cd.tar.bz2 art-13b27842e88ccf1a42807c92daeb108e867dc4cd.zip |
ART: Refactor jmethodID handling
ArtMethod objects have been native since Marshmallow.
Remove the dependency on being runnable. Refactor the
code into the jni_internal header.
Test: m test-art-host
Change-Id: I1385fcd4c08981491701da55a87036b447aa2fc2
Diffstat (limited to 'runtime/native_bridge_art_interface.cc')
-rw-r--r-- | runtime/native_bridge_art_interface.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/native_bridge_art_interface.cc b/runtime/native_bridge_art_interface.cc index 5ab6097aa4..66a93590e1 100644 --- a/runtime/native_bridge_art_interface.cc +++ b/runtime/native_bridge_art_interface.cc @@ -25,6 +25,7 @@ #include "base/logging.h" #include "base/macros.h" #include "dex_file-inl.h" +#include "jni_internal.h" #include "mirror/class-inl.h" #include "scoped_thread_state_change-inl.h" #include "sigchain.h" @@ -33,7 +34,7 @@ namespace art { static const char* GetMethodShorty(JNIEnv* env, jmethodID mid) { ScopedObjectAccess soa(env); - ArtMethod* m = soa.DecodeMethod(mid); + ArtMethod* m = jni::DecodeArtMethod(mid); return m->GetShorty(); } |