diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2025-12-27 13:19:56 -0500 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-12-28 08:55:38 -0500 |
| commit | eaa83e505fdcddd1d354f1d9a375b22f33748060 (patch) | |
| tree | d5a393e073831a72cb47b2b0af090cec18377a0d /include | |
| parent | 3fe2ebf8e4127bca0a57d4ed8eb6035792420a26 (diff) | |
Always allocate Fiber objects in Thread
Currently, root fibers of threads do not have a corresponding Ruby object
backing it by default (it does have one when an object is required, such
as when Fiber.current is called). This is a problem for the new GC weak
references design in #12606 since Thread is not declared as having weak
references but it does hold weak references (the generic ivar cache).
This commit changes it to always allocate a Fiber object for the root
fiber.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
