MCPcopy Create free account
hub / github.com/facebook/SoLoader / makeLdLibraryPath

Method makeLdLibraryPath

java/com/facebook/soloader/SoLoader.java:1322–1339  ·  view source on GitHub ↗

Retrieve an LD_LIBRARY_PATH value suitable for using the native linker to resolve our shared libraries. @return the LD_LIBRARY_PATH in string

()

Source from the content-addressed store, hash-verified

1320 * @return the LD_LIBRARY_PATH in string
1321 */
1322 public static String makeLdLibraryPath() {
1323 sSoSourcesLock.readLock().lock();
1324 try {
1325 assertInitialized();
1326 ArrayList<String> pathElements = new ArrayList<>();
1327 SoSource[] soSources = sSoSources;
1328 if (soSources != null) {
1329 for (SoSource soSource : soSources) {
1330 soSource.addToLdLibraryPath(pathElements);
1331 }
1332 }
1333 String joinedPaths = TextUtils.join(":", pathElements);
1334 LogUtil.d(TAG, "makeLdLibraryPath final path: " + joinedPaths);
1335 return joinedPaths;
1336 } finally {
1337 sSoSourcesLock.readLock().unlock();
1338 }
1339 }
1340
1341 /**
1342 * This function ensure that every SoSources Abi is supported for at least one abi in

Callers

nothing calls this directly

Calls 4

assertInitializedMethod · 0.95
dMethod · 0.95
lockMethod · 0.80
addToLdLibraryPathMethod · 0.45

Tested by

no test coverage detected