diff options
| author | Stan Lo <stan.lo@shopify.com> | 2025-07-18 16:36:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-18 15:36:51 +0000 |
| commit | 8df61bfc92463e9896465d73176663c583d8ec0c (patch) | |
| tree | 50d8777f2cb9a932778e3aa9f4f41e33e9920103 /ruby_atomic.h | |
| parent | dafc4e131e782c69150ffe84184cffd8b8ec98e5 (diff) | |
ZJIT: Support invalidating on method redefinition (#13875)
ZJIT: Support invalidating method redefinition
This commit adds support for the MethodRedefined invariant to be invalidated
when a method is redefined.
Changes:
- Added CME pointer to the MethodRedefined invariant in HIR
- Updated all places where MethodRedefined invariants are created to
include the CME pointer
- Added handling for MethodRedefined invariants in gen_patch_point to
call track_cme_assumption, which registers the patch point for
invalidation when rb_zjit_cme_invalidate is called
This ensures that when a method is redefined, all JIT code that
depends on that method will be properly invalidated.
Diffstat (limited to 'ruby_atomic.h')
0 files changed, 0 insertions, 0 deletions
