ruby-changes:70023
From: Matt <ko1@a...>
Date: Fri, 3 Dec 2021 00:14:37 +0900 (JST)
Subject: [ruby-changes:70023] f7bdfb39ef (master): Don't clear the constant cache when finishing compaction
https://git.ruby-lang.org/ruby.git/commit/?id=f7bdfb39ef From f7bdfb39ef6dd5ac72492364bcd23743e0ce36a6 Mon Sep 17 00:00:00 2001 From: Matt Valentine-House <matt@e...> Date: Wed, 1 Dec 2021 21:29:22 +0000 Subject: Don't clear the constant cache when finishing compaction References are being updated correctly, so this is no longer necessary --- gc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gc.c b/gc.c index 8aecf70ab3f..9bdeaac2347 100644 --- a/gc.c +++ b/gc.c @@ -5170,7 +5170,6 @@ gc_compact_finish(rb_objspace_t *objspace, rb_size_pool_t *pool, rb_heap_t *heap https://github.com/ruby/ruby/blob/trunk/gc.c#L5170 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; } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/