diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2023-04-14 15:04:55 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2023-04-14 18:01:14 -0400 |
commit | 31e67a476f2262e01a0829e8ab5e6d8a97e0724e (patch) | |
tree | d377bc8b6ca4ba6f390bd6679408ebbfa173f914 /bootstraptest/test_yjit_rust_port.rb | |
parent | 4501fb8b467cd40da5e160b82db7ea1a10d9e7ca (diff) | |
download | ruby-31e67a476f2262e01a0829e8ab5e6d8a97e0724e.tar.gz |
YJIT: Fix false object collection when setting ivar
Previously, setinstancevariable could generate code that calls
`rb_ensure_iv_list_size()` without first updating `cfp->sp`. This means
in the event that a GC start from within said routine the top few
objects would not be marked, causing them to be falsly collected.
Call `jit_prepare_routine_call()` first.
[Bug #19601]
Diffstat (limited to 'bootstraptest/test_yjit_rust_port.rb')
0 files changed, 0 insertions, 0 deletions