diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2021-07-19 19:21:46 +1200 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2021-07-27 18:23:30 +1200 |
commit | 13f8521c630a15c87398dee0763e95f59c032a94 (patch) | |
tree | adfa523406b6468a457c68ef6ffde37c7319fa97 /.gdbinit | |
parent | cd49940cff39601ff573add7cbcc8e80a54ad5f2 (diff) | |
download | ruby-13f8521c630a15c87398dee0763e95f59c032a94.tar.gz |
Fix potential hang when joining threads.
If the thread termination invokes user code after `th->status` becomes
`THREAD_KILLED`, and the user unblock function causes that `th->status` to
become something else (e.g. `THREAD_RUNNING`), threads waiting in
`thread_join_sleep` will hang forever. We move the unblock function call
to before the thread status is updated, and allow threads to join as soon
as `th->value` becomes defined.
Diffstat (limited to '.gdbinit')
0 files changed, 0 insertions, 0 deletions