summaryrefslogtreecommitdiffstats
path: root/runtime/jni_internal.cc
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2014-08-12 20:55:20 +0100
committerCalin Juravle <calin@google.com>2014-08-15 13:27:42 +0100
commit93de4273d72a2558a7b3423547b5074cd76c5796 (patch)
tree227453bdc534d34c05bdaf6a0e34edf555da5b19 /runtime/jni_internal.cc
parent4f1d05f0531b980b16dbff18161f02160919ec31 (diff)
downloadart-93de4273d72a2558a7b3423547b5074cd76c5796.tar.gz
art-93de4273d72a2558a7b3423547b5074cd76c5796.tar.bz2
art-93de4273d72a2558a7b3423547b5074cd76c5796.zip
[ART] Move to system/core native bridge library
Some cleanups on the way: - move NativeBridgeRuntimeCallbacks from a global to a field - rename native_bridge_library_string to the more suggestive navtive_bridge_library_path - clean up imports Bug: 16884833 (cherry picked from commit I73aab8e212860ba5aee9444d801806d3da326a41) Change-Id: I67f037ea81d2a4ede4294afd8b84b7640e534a13
Diffstat (limited to 'runtime/jni_internal.cc')
-rw-r--r--runtime/jni_internal.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/jni_internal.cc b/runtime/jni_internal.cc
index e3341ce57e..2156ed1912 100644
--- a/runtime/jni_internal.cc
+++ b/runtime/jni_internal.cc
@@ -42,7 +42,6 @@
#include "mirror/object_array-inl.h"
#include "mirror/string-inl.h"
#include "mirror/throwable.h"
-#include "native_bridge.h"
#include "parsed_options.h"
#include "reflection.h"
#include "runtime.h"
@@ -448,7 +447,7 @@ class SharedLibrary {
if (m != nullptr) {
shorty = m->GetShorty(&len);
}
- return NativeBridgeGetTrampoline(handle_, symbol_name.c_str(), shorty, len);
+ return android::NativeBridgeGetTrampoline(handle_, symbol_name.c_str(), shorty, len);
}
void VisitRoots(RootCallback* visitor, void* arg) {
@@ -3309,8 +3308,8 @@ bool JavaVMExt::LoadNativeLibrary(const std::string& path,
void* handle = dlopen(path_str, RTLD_LAZY);
bool needs_native_bridge = false;
if (handle == nullptr) {
- if (NativeBridgeIsSupported(path_str)) {
- handle = NativeBridgeLoadLibrary(path_str, RTLD_LAZY);
+ if (android::NativeBridgeIsSupported(path_str)) {
+ handle = android::NativeBridgeLoadLibrary(path_str, RTLD_LAZY);
needs_native_bridge = true;
}
}