Open AreaZR opened 10 months ago
@swift-ci please test
@ktoso My bad! It compiled and ran fine on my machine but I found the mistake and fixed it.
Can we please try one more time?
@compnerd Can we please do a test?
I'm not sure that this is valuable enough to do really.
I'm not sure what the point of the atomics change is. The control flow change is non-obvious and totally unexplained in either comments or in the PR summary.
Prefer __atomic_compare_exchange_n over __sync_bool_compare_and_swap.
I chose weak because we are looping and reading the value of old_value constantly anyway, so it would be better to have it weak.
Otherwise, it is equivalent to what it was before.