summaryrefslogtreecommitdiff
path: root/coroutine
diff options
context:
space:
mode:
authorJohn Hawthorn <[email protected]>2023-12-22 12:15:22 -0800
committerJohn Hawthorn <[email protected]>2023-12-22 18:07:22 -0800
commitf1b7424cbed00a27532a053949f524eaaf4be1ba (patch)
treedab869a7d6175e5c100682aa74f1d5aa7d7e68b4 /coroutine
parent339978ef3869acb2ff877451381a80ee4b548bfb (diff)
FREE_AT_EXIT: Don't free main stack post-fork
When a forked process was started in a thread, this would result in a double-free during the child process exit. RUBY_FREE_AT_EXIT=1 ./miniruby -e 'Thread.new { fork { } }.join; Process.waitpid' This is because the main thread in the forked process was not the initial VM thread, and the new thread's stack was freed as part of objectspace iteration. This change also allows rb_threadptr_root_fiber_release to run without EC being available.
Diffstat (limited to 'coroutine')
0 files changed, 0 insertions, 0 deletions