diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2025-09-29 18:33:04 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-09-30 09:47:29 -0400 |
| commit | d8c8623f50af8f5324e1679ff95b1a2071c0c61e (patch) | |
| tree | 80610004e309fa27b673489d0b0d2001bb98ac28 /include/ruby | |
| parent | 37d65e9252a4c3096325c63a876a289e03a7417c (diff) | |
Set context_stack on main thread
We allocate the stack of the main thread using malloc, but we never set
malloc_stack to true and context_stack. If we fork, the main thread may
no longer be the main thread anymore so it reports memory being leaked
in RUBY_FREE_AT_EXIT.
This commit allows the main thread to free its own VM stack at shutdown.
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions
