summaryrefslogtreecommitdiff
path: root/src/runtime.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime.cc')
-rw-r--r--src/runtime.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime.cc b/src/runtime.cc
index e6bd6e23bc..790a700b6f 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -442,13 +442,14 @@ void Runtime::InitNativeMethods() {
// Must be in the kNative state for JNI-based method registration.
ScopedThreadStateChange tsc(self, Thread::kNative);
+ JniConstants::init(env);
+
// First set up the native methods provided by the runtime itself.
RegisterRuntimeNativeMethods(env);
// Now set up libcore, which is just a JNI library with a JNI_OnLoad.
// Most JNI libraries can just use System.loadLibrary, but you can't
// if you're the library that implements System.loadLibrary!
- JniConstants::init(env);
LoadJniLibrary(instance_->GetJavaVM(), "javacore");
}