summaryrefslogtreecommitdiff
path: root/gc.rb
diff options
context:
space:
mode:
authorAaron Patterson <[email protected]>2020-11-05 11:13:04 -0800
committerAaron Patterson <[email protected]>2020-11-05 11:13:04 -0800
commitab5f2fa4fb5b89a71080cd51e192a3882696fe04 ()
tree45b942e5bf2d9a70114d340e0d29aa552807b096 /gc.rb
parent68a3a2d90f96b46e5c20659ea3eef3f554fbf542 (diff)
Refactor verification method
Combine everything in to one C function
-rw-r--r--gc.rb12
1 files changed, 1 insertions, 11 deletions
@@ -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
end
end