diff options
author | eileencodes <[email protected]> | 2021-12-01 14:01:34 -0500 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2021-12-03 09:45:58 -0800 |
commit | 54ca530dbe39f389da2b5972a574460a3665eeff (patch) | |
tree | cf6917afe40bc58637730e9ddea1e7e2d8c2b504 /yjit.c | |
parent | 7fc9d83bd1c1b8c44790b6af0f81f3b7364270ca (diff) |
YJIT: Add ivar counter exits
On Rails we're seeing a lot of exits for ivars in the Active Record
tests. In trying to track them down it was hard to find what code is
exiting.
This change adds a counted exit for when an object is "megamorphic". In
these cases there are too many specializations in the Ruby code so YJIT
exits.
Co-authored-by: Aaron Patterson [email protected]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5197
Diffstat (limited to 'yjit.c')
-rw-r--r-- | yjit.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -103,6 +103,7 @@ YJIT_DECLARE_COUNTERS( getivar_se_self_not_heap, getivar_idx_out_of_range, + getivar_megamorphic, setivar_se_self_not_heap, setivar_idx_out_of_range, |