diff options
author | Alan Wu <[email protected]> | 2022-01-06 21:57:43 -0500 |
---|---|---|
committer | Alan Wu <[email protected]> | 2022-01-07 19:29:03 -0500 |
commit | 54c91042ed61a869d4a66fc089b21f56d165265f (patch) | |
tree | 9d4e7f2acbbbabdd62b1fb1c24082a580ce10094 /enum.c | |
parent | bc643bbe2e2c1afbed18ce2bcf4aed138fece412 (diff) |
YJIT: Discard local var type info on routine call
Routines that are called from YJIT's output code can call methods, and
calling methods mean they can capture and change the environment of the
calling frame.
Discard type info whenever we perform routine calls. This is more
conservative than strictly necessary as some routines need to perform GC
allocation but can never call methods and so should never be able to
change local variables. However, manually analyzing C functions for
whether they have code paths that call methods is error prone and can go
out of date as changes land in the codebase.
Closes: shopify/yjit#300
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5416
Diffstat (limited to 'enum.c')
0 files changed, 0 insertions, 0 deletions