diff options
author | Aaron Patterson <[email protected]> | 2024-06-05 11:26:25 -0700 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2024-06-18 09:28:25 -0700 |
commit | e5160a9c60e4a8b1e53b94c3e696968d9f61f6c9 () | |
tree | c30403e642aa60b41bcbdd75eeaeaf6aba13ad0f /imemo.c | |
parent | a661c82972d1b4e3fc26662639b3a55c673ecb5e (diff) |
Mark the class on orphan call caches
"super" CC's are "orphans", meaning there is no class CC table that points at them. Since they are orphans, we should mark the class reference so that if the cache happens to be used, the class will still be alive
-rw-r--r-- | imemo.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -316,6 +316,7 @@ rb_imemo_mark_and_move(VALUE obj, bool reference_updating) else { if (vm_cc_super_p(cc) || vm_cc_refinement_p(cc)) { rb_gc_mark_movable((VALUE)cc->cme_); } } |