Commit 78a8fc8
committed
The asserts in preprocessQueue assume that the only reason we are
preprocessing is due to running into a concurrent enqueuer while
draining. However, sometimes we can go into this code path because
compare_exchange_weak failed spuriously. We need to account the fact
that compare_exchange_weak can fail spuriously. Also add more asserts.
Radar-Id: rdar://problem/892369111 parent a3e3c3f commit 78a8fc8
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1031 | 1031 | | |
1032 | 1032 | | |
1033 | 1033 | | |
| 1034 | + | |
| 1035 | + | |
1034 | 1036 | | |
1035 | 1037 | | |
1036 | 1038 | | |
| |||
1423 | 1425 | | |
1424 | 1426 | | |
1425 | 1427 | | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
1426 | 1433 | | |
1427 | 1434 | | |
1428 | 1435 | | |
| |||
0 commit comments