diff options
| author | John Hawthorn <john@hawthorn.email> | 2026-01-16 12:01:15 -0800 |
|---|---|---|
| committer | John Hawthorn <john@hawthorn.email> | 2026-01-16 12:46:20 -0800 |
| commit | c56ce8a6c19334265b1a4a64876fffff9b98b2b1 (patch) | |
| tree | 8e253f78eb6be989ca54ac647d9b2267055f357c | |
| parent | 87147ba5e983f554fb56f859af0d858d5eff0896 (diff) | |
Remove objspace->flags.has_newobj_hook
We aren't using this anymore and the hook is called in gc.c
| -rw-r--r-- | gc/default/default.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gc/default/default.c b/gc/default/default.c index be5385f166..132dbcb5fa 100644 --- a/gc/default/default.c +++ b/gc/default/default.c @@ -505,7 +505,6 @@ typedef struct rb_objspace { unsigned int during_compacting : 1; unsigned int during_reference_updating : 1; unsigned int gc_stressful: 1; - unsigned int has_newobj_hook: 1; unsigned int during_minor_gc : 1; unsigned int during_incremental_marking : 1; unsigned int measure_gc : 1; @@ -1520,7 +1519,6 @@ rb_gc_impl_set_event_hook(void *objspace_ptr, const rb_event_flag_t event) { rb_objspace_t *objspace = objspace_ptr; objspace->hook_events = event & RUBY_INTERNAL_EVENT_OBJSPACE_MASK; - objspace->flags.has_newobj_hook = !!(objspace->hook_events & RUBY_INTERNAL_EVENT_NEWOBJ); } unsigned long long |
