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:
parent
ca33b59099
commit
f7bdfb39ef
Notes:
git
2021-12-03 00:14:49 +09:00
1 changed files with 0 additions and 1 deletions
1
gc.c
1
gc.c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue