Commit 30b73ed
committed
[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).1 parent febe1a9 commit 30b73ed
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
937 | 937 | | |
938 | 938 | | |
939 | 939 | | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
940 | 946 | | |
941 | 947 | | |
942 | 948 | | |
| |||
1397 | 1403 | | |
1398 | 1404 | | |
1399 | 1405 | | |
1400 | | - | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
1404 | 1406 | | |
1405 | 1407 | | |
1406 | 1408 | | |
| |||
1410 | 1412 | | |
1411 | 1413 | | |
1412 | 1414 | | |
1413 | | - | |
| 1415 | + | |
1414 | 1416 | | |
1415 | 1417 | | |
1416 | 1418 | | |
| |||
0 commit comments