diff options
author | 2024-02-23 20:04:52 +0000 | |
---|---|---|
committer | 2024-02-23 20:38:51 +0000 | |
commit | c35eef72b57b37975a29eedba92798313c01b444 (patch) | |
tree | 457c50225f9645c8628315c24c3eb19d21727300 /runtime/jni/java_vm_ext.cc | |
parent | 6e52064e41e6a130f1713c2f422c5bf66a5ff3b7 (diff) |
Revert "Give full access to native libs from java libs in the sa..."
Revert submission 2933611-libnativeloader-shared-syslibs
Reason for revert: Fixing test breakage b/326622518, b/326631342
Reverted changes: /q/submissionid:2933611-libnativeloader-shared-syslibs
Change-Id: I746478191c0e3a2d1a36d87e7a3db980de196420
Diffstat (limited to 'runtime/jni/java_vm_ext.cc')
-rw-r--r-- | runtime/jni/java_vm_ext.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/jni/java_vm_ext.cc b/runtime/jni/java_vm_ext.cc index bbe3970839..2a364f37b1 100644 --- a/runtime/jni/java_vm_ext.cc +++ b/runtime/jni/java_vm_ext.cc @@ -958,12 +958,12 @@ bool JavaVMExt::LoadNativeLibrary(JNIEnv* env, if (class_linker->IsBootClassLoader(loader)) { loader = nullptr; class_loader = nullptr; - } - if (caller_class != nullptr) { - ObjPtr<mirror::Class> caller = soa.Decode<mirror::Class>(caller_class); - ObjPtr<mirror::DexCache> dex_cache = caller->GetDexCache(); - if (dex_cache != nullptr) { - caller_location = dex_cache->GetLocation()->ToModifiedUtf8(); + if (caller_class != nullptr) { + ObjPtr<mirror::Class> caller = soa.Decode<mirror::Class>(caller_class); + ObjPtr<mirror::DexCache> dex_cache = caller->GetDexCache(); + if (dex_cache != nullptr) { + caller_location = dex_cache->GetLocation()->ToModifiedUtf8(); + } } } |