diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2020-11-21 19:24:59 -0800 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2020-11-21 19:36:55 -0800 |
| commit | e0156bd39656e26971e4236747e9cd4f45f8b35f (patch) | |
| tree | eea453a551e34906c5208299d516795cf94318ba /spec/ruby/shared/queue | |
| parent | eb3906c6b8ea3d88c5c53cb420e18dcda4d7081e (diff) | |
Make sure all threads are scanned on unload_units
This has been a TODO since 79df14c04b. While adcf0316d1 covered the
root_fiber of the initial thread, it didn't cover root_fibers of other
threads. Now it's hooked properly in rb_threadptr_root_fiber_setup.
With regards to "XXX: Is this mjit_cont `mjit_cont_free`d?", when
rb_threadptr_root_fiber_release is called, although I'm not sure when
th->root_fiber is truthy, fiber_free seems to call cont_free and
mjit_cont_free. So mjit_conts of root_fibers seem to be freed properly.
Diffstat (limited to 'spec/ruby/shared/queue')
0 files changed, 0 insertions, 0 deletions
