Skip to content

Commit c56ce8a

Browse files
committed
Remove objspace->flags.has_newobj_hook
We aren't using this anymore and the hook is called in gc.c
1 parent 87147ba commit c56ce8a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

gc/default/default.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,6 @@ typedef struct rb_objspace {
505505
unsigned int during_compacting : 1;
506506
unsigned int during_reference_updating : 1;
507507
unsigned int gc_stressful: 1;
508-
unsigned int has_newobj_hook: 1;
509508
unsigned int during_minor_gc : 1;
510509
unsigned int during_incremental_marking : 1;
511510
unsigned int measure_gc : 1;
@@ -1520,7 +1519,6 @@ rb_gc_impl_set_event_hook(void *objspace_ptr, const rb_event_flag_t event)
15201519
{
15211520
rb_objspace_t *objspace = objspace_ptr;
15221521
objspace->hook_events = event & RUBY_INTERNAL_EVENT_OBJSPACE_MASK;
1523-
objspace->flags.has_newobj_hook = !!(objspace->hook_events & RUBY_INTERNAL_EVENT_NEWOBJ);
15241522
}
15251523

15261524
unsigned long long

0 commit comments

Comments
 (0)