summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.cc
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2013-10-18 15:42:20 -0700
committerIan Rogers <irogers@google.com>2013-10-20 14:55:26 -0700
commit1eb512d33f94d1dd7ea38263307ba0f7a0dfa653 (patch)
treeb4d4d9b16013ab90fb4b40d23013d7ef44bb5852 /runtime/runtime.cc
parentb917ea1a62aa0ab8eca3f689ef64b5be34e11abb (diff)
downloadart-1eb512d33f94d1dd7ea38263307ba0f7a0dfa653.zip
art-1eb512d33f94d1dd7ea38263307ba0f7a0dfa653.tar.gz
art-1eb512d33f94d1dd7ea38263307ba0f7a0dfa653.tar.bz2
Fast JNI support.
Use a modifier to signal a native method is a fast JNI method. If the modifier is set then don't perform runnable transitions. Change-Id: I7835b4d837bfdd1cb8e2d54b919c0d5e6cf90499
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r--runtime/runtime.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index bdedef4..f46b794 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -977,7 +977,7 @@ void Runtime::InitNativeMethods() {
std::string mapped_name(StringPrintf(OS_SHARED_LIB_FORMAT_STR, "javacore"));
std::string reason;
self->TransitionFromSuspendedToRunnable();
- if (!instance_->java_vm_->LoadNativeLibrary(mapped_name, NULL, reason)) {
+ if (!instance_->java_vm_->LoadNativeLibrary(mapped_name, NULL, &reason)) {
LOG(FATAL) << "LoadNativeLibrary failed for \"" << mapped_name << "\": " << reason;
}
self->TransitionFromRunnableToSuspended(kNative);