Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid compare_exhange_weak in linear_page.rs
compare_exchange_weak can fail spuriously (ie, even if the values match) on some platforms (in my case arm musl). This leads to a panic as we are assuming that x is not null, but in fact it can be null in the spurious failure case. We can wrap this in a loop and check for this, or we can just use the strong variant as I have here, and let llvm do the loop for us.
- Loading branch information