diff options
| author | Luke Gruber <luke.gruber@shopify.com> | 2025-12-16 14:06:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-16 14:06:55 -0500 |
| commit | 4fb537b1ee28bb37dbe551ac65c279d436c756bc (patch) | |
| tree | 03a8f339cb53f6b9b0b359af0d50bdcbc5eefcc9 /imemo.c | |
| parent | d209e6f1c0a93ad3ce1cc64dd165a6b67672614d (diff) | |
Make tracepoints with set_trace_func or TracePoint.new ractor local (#15468)
Before this change, GC'ing any Ractor object caused you to lose all
enabled tracepoints across all ractors (even main). Now tracepoints are
ractor-local and this doesn't happen. Internal events are still global.
Fixes [Bug #19112]
Diffstat (limited to 'imemo.c')
| -rw-r--r-- | imemo.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -306,9 +306,6 @@ mark_and_move_method_entry(rb_method_entry_t *ment, bool reference_updating) if (!rb_gc_checking_shareable()) { rb_gc_mark_and_move(&def->body.bmethod.proc); } - if (def->body.bmethod.hooks) { - rb_hook_list_mark_and_move(def->body.bmethod.hooks); - } break; case VM_METHOD_TYPE_ALIAS: rb_gc_mark_and_move_ptr(&def->body.alias.original_me); |
