Skip to content

Commit

Permalink
Use loadLibraryUnsafe where needed
Browse files Browse the repository at this point in the history
Reviewed By: adicatana

Differential Revision: D63471298

fbshipit-source-id: e00768709dde855500de6fc88ffbcb4f54667fec
  • Loading branch information
Nikolai Tillmann authored and facebook-github-bot committed Oct 1, 2024
1 parent df8148e commit 7832805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion java/com/facebook/soloader/NativeLibrary.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public boolean loadLibraries() {
try {
if (mLibraryNames != null) {
for (String name : mLibraryNames) {
SoLoader.loadLibrary(name);
SoLoader.loadLibraryUnsafe(name);
}
}
initialNativeCheck();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7832805

Please sign in to comment.