diff options
| author | 2019-01-25 22:42:22 +0000 | |
|---|---|---|
| committer | 2019-01-25 22:42:22 +0000 | |
| commit | bd0eb2ca58c8edc6beaaae12fc9ee4ca64cd28bc (patch) | |
| tree | 1ebf839f5c3e021114a942ac0666d6a2bf401906 | |
| parent | 94c8670e6e3f7291c1e4e36f6a009d606ca86050 (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.cc | 6 |
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; } } |