Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stackwalk: fix jl_thread_suspend_and_get_state race (#56047)
There was a missing re-assignment of old = -1; at the end of that loop which means in the ABA case, we accidentally actually acquire the lock on the thread despite not actually having stopped the thread; or in the counter-case, we try to run through this logic with old==-1 on the next iteration, and that isn't valid either (jl_thread_suspend_and_get_state should return failure and the loop will abort too early). Fix #56046
- Loading branch information