From ab5f2fa4fb5b89a71080cd51e192a3882696fe04 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 5 Nov 2020 11:13:04 -0800 Subject: Refactor verification method Combine everything in to one C function --- gc.rb | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'gc.rb') diff --git a/gc.rb b/gc.rb index c763fc1359..d2b0d8e86e 100644 --- a/gc.rb +++ b/gc.rb @@ -218,17 +218,7 @@ module GC # object, that object should be pushed on the mark stack, and will # make a SEGV. def self.verify_compaction_references(toward: nil, double_heap: false) - if double_heap - Primitive.gc_double_heap_size - end - - if toward == :empty - Primitive.gc_sort_heap_by_empty_slots - end - - Primitive.gc_start_internal true, true, true, true - Primitive.gc_check_references_for_moved - Primitive.gc_compact_stats + Primitive.gc_verify_compaction_references(double_heap, toward == :empty) end end -- cgit v1.2.3