From 7832805a2928065b50bb73f426137bd7a72eb92c Mon Sep 17 00:00:00 2001 From: Nikolai Tillmann Date: Mon, 30 Sep 2024 21:25:47 -0700 Subject: [PATCH] Use loadLibraryUnsafe where needed Reviewed By: adicatana Differential Revision: D63471298 fbshipit-source-id: e00768709dde855500de6fc88ffbcb4f54667fec --- java/com/facebook/soloader/NativeLibrary.java | 2 +- java/com/facebook/soloader/NativeLoaderToSoLoaderDelegate.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/com/facebook/soloader/NativeLibrary.java b/java/com/facebook/soloader/NativeLibrary.java index f4910b4..d838fbb 100644 --- a/java/com/facebook/soloader/NativeLibrary.java +++ b/java/com/facebook/soloader/NativeLibrary.java @@ -59,7 +59,7 @@ public boolean loadLibraries() { try { if (mLibraryNames != null) { for (String name : mLibraryNames) { - SoLoader.loadLibrary(name); + SoLoader.loadLibraryUnsafe(name); } } initialNativeCheck(); diff --git a/java/com/facebook/soloader/NativeLoaderToSoLoaderDelegate.java b/java/com/facebook/soloader/NativeLoaderToSoLoaderDelegate.java index 6cda7d6..1e3541d 100644 --- a/java/com/facebook/soloader/NativeLoaderToSoLoaderDelegate.java +++ b/java/com/facebook/soloader/NativeLoaderToSoLoaderDelegate.java @@ -26,7 +26,7 @@ public boolean loadLibrary(String shortName, int flags) { int soLoaderFlags = 0; soLoaderFlags |= ((flags & SKIP_MERGED_JNI_ONLOAD) != 0) ? SoLoader.SOLOADER_SKIP_MERGED_JNI_ONLOAD : 0; - return SoLoader.loadLibrary(shortName, soLoaderFlags); + return SoLoader.loadLibraryUnsafe(shortName, soLoaderFlags); } @Override