1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Don't clear the constant cache when finishing compaction

References are being updated correctly, so this is no longer necessary
This commit is contained in:
Matt Valentine-House 2021-12-01 21:29:22 +00:00 committed by Peter Zhu
parent ca33b59099
commit f7bdfb39ef
Notes: git 2021-12-03 00:14:49 +09:00

1
gc.c
View file

@ -5170,7 +5170,6 @@ gc_compact_finish(rb_objspace_t *objspace, rb_size_pool_t *pool, rb_heap_t *heap
gc_profile_record *record = gc_prof_record(objspace);
record->moved_objects = objspace->rcompactor.total_moved - record->moved_objects;
}
rb_clear_constant_cache();
objspace->flags.during_compacting = FALSE;
}