summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2019-01-25 22:42:22 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2019-01-25 22:42:22 +0000
commitbd0eb2ca58c8edc6beaaae12fc9ee4ca64cd28bc (patch)
tree1ebf839f5c3e021114a942ac0666d6a2bf401906
parent94c8670e6e3f7291c1e4e36f6a009d606ca86050 (diff)
Revert "Load libopenjdk and libjavacore with the runtime namespace."
This reverts commit 94c8670e6e3f7291c1e4e36f6a009d606ca86050. Bug: 123424163 Reason for revert: Fails boot Change-Id: I9aa6a296275d1a2e19cb3801d9082293b2b400f0
-rw-r--r--runtime/runtime.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index feade83a2e..a86bc9438e 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -1752,8 +1752,7 @@ void Runtime::InitNativeMethods() {
// libcore can't because it's the library that implements System.loadLibrary!
{
std::string error_msg;
- if (!java_vm_->LoadNativeLibrary(
- env, "libjavacore.so", nullptr, WellKnownClasses::java_lang_Object, &error_msg)) {
+ if (!java_vm_->LoadNativeLibrary(env, "libjavacore.so", nullptr, nullptr, &error_msg)) {
LOG(FATAL) << "LoadNativeLibrary failed for \"libjavacore.so\": " << error_msg;
}
}
@@ -1762,8 +1761,7 @@ void Runtime::InitNativeMethods() {
? "libopenjdkd.so"
: "libopenjdk.so";
std::string error_msg;
- if (!java_vm_->LoadNativeLibrary(
- env, kOpenJdkLibrary, nullptr, WellKnownClasses::java_lang_Object, &error_msg)) {
+ if (!java_vm_->LoadNativeLibrary(env, kOpenJdkLibrary, nullptr, nullptr, &error_msg)) {
LOG(FATAL) << "LoadNativeLibrary failed for \"" << kOpenJdkLibrary << "\": " << error_msg;
}
}