Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition in
SoLoader#init
. (#99)
Summary: If two threads call `SoLoader#init` at the same time, there is a chance they both try to initialize `sSoSources` one after the other, which eventually leads to an `OverlappingFileLockException`. To fix this issue, add a double check after obtaining the write lock to only initialize if `sSoSources` is still null. Fixes #93. Pull Request resolved: #99 Differential Revision: D35891724 Pulled By: passy fbshipit-source-id: fb1bcfaa9df7102c1083ec0c0deb336cef75c0dd
- Loading branch information