Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ORC][MachO] Avoid another race condition in MachOPlatform bootstrap.
Similar to a9e75b1: During MachOPlatform bootstrap we need to defer actions until essential platform functionality has been loaded, but the platform itself may be loaded under a concurrent dispatcher so we have to guard against the deferred actions vector being accessed concurrently. This fixes a probablistic failure in the ORC runtime regression tests on Darwin/x86-64 that was spotted after edca1d9 (which turned on concurrent linking by default in llvm-jitlink).
- Loading branch information