-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify retry logic in loadLibraryBySoName
Summary: There're two retry points in Soloader now, they look redundant. Try to simplify them on this diff. We also did some refactor in this diff: * Deprecate `LOAD_FLAG_ALLOW_SOURCE_CHANGE`. After we move retry logic to the `loadLibraryBySoName`, we don't need this flag to indicate whether soloader can modify the so source. * Move test only methods to inner `TestOnlyUtils` class to prevent misusing.Some test functions are not thread-safe. Reviewed By: MatthewLangille Differential Revision: D20449988 fbshipit-source-id: c9b8976da84b42d5b7bc0a5bd524fe3ffb5fef8b
- Loading branch information
1 parent
c0d3c13
commit f8eaf3e
Showing
3 changed files
with
99 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters