diff options
author | Andreas Gampe <agampe@google.com> | 2015-06-30 11:23:44 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-06-30 11:30:08 -0700 |
commit | e54cd64e97e5626d685e858cd871db248dacf7ea (patch) | |
tree | 136457838f0cb4322ba02b57bb1a93869d17e375 /runtime | |
parent | ed40271dc6148252f6a0a810c59d3ff1cb9925ba (diff) | |
download | art-e54cd64e97e5626d685e858cd871db248dacf7ea.zip art-e54cd64e97e5626d685e858cd871db248dacf7ea.tar.gz art-e54cd64e97e5626d685e858cd871db248dacf7ea.tar.bz2 |
ART: Remove bad FindSymbol call
The removed call is superfluous under normal operation and harmful
when running a native-bridged library.
Bug: 22194296
Bug: https://code.google.com/p/android-developer-preview/issues/detail?id=2367
(cherry picked from commit 8fec90b421732b3eb278555f57aaf48fda4fa4ba)
Change-Id: I3eb8f435a6a974a3e87a370b254ba8752f2a59b3
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/java_vm_ext.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/java_vm_ext.cc b/runtime/java_vm_ext.cc index eb9c32d..f1deacf 100644 --- a/runtime/java_vm_ext.cc +++ b/runtime/java_vm_ext.cc @@ -132,6 +132,8 @@ class SharedLibrary { } void* FindSymbol(const std::string& symbol_name) { + CHECK(!NeedsNativeBridge()); + return dlsym(handle_, symbol_name.c_str()); } @@ -234,9 +236,6 @@ class Libraries { fn = library->FindSymbol(jni_long_name); } } - if (fn == nullptr) { - fn = library->FindSymbol(jni_long_name); - } if (fn != nullptr) { VLOG(jni) << "[Found native code for " << PrettyMethod(m) << " in \"" << library->GetPath() << "\"]"; |