1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/fiber
Samuel Williams 2d4f29e77e 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.

This reverts commit 6505c77501.
2021-08-03 22:23:48 +12:00
..
http.rb
scheduler.rb Fix potential hang when joining threads. 2021-08-03 22:23:48 +12:00
test_address_resolve.rb Fix fiber scheduler address resolve solaris tests 2021-06-14 22:09:23 +12:00
test_backtrace.rb
test_enumerator.rb
test_io.rb
test_mutex.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
test_process.rb
test_ractor.rb
test_scheduler.rb
test_sleep.rb Close leaked file descriptors 2021-06-15 00:02:15 +09:00
test_thread.rb Fix potential hang when joining threads. 2021-08-03 22:23:48 +12:00
test_timeout.rb