summaryrefslogtreecommitdiff
path: root/src/runtime.cc
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2011-09-22 10:26:20 -0700
committer Elliott Hughes <enh@google.com> 2011-09-22 10:26:20 -0700
commitfea966e51e65f2040e1510a2e39d407baad29b2c (patch)
tree57fc15f6c7d2bc863016f739473c26ffb8dc0b79 /src/runtime.cc
parent33203b59aa5f27bac0433bdb640f1f1e911186eb (diff)
Use regular JNI for initializing the boxing types.
Change-Id: I2ae94b7a9cbd2831fb73e58aa9f71e50edb78f87
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");
}