From 4dc5d3c5dd43b4cc54517e604c16ecfc808e5481 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 7 May 2019 14:06:25 +0900 Subject: add new debug_counters about is_pointer_to_heap(). is_pointer_to_heap() is used for conservative marking. To analyze this function's behavior, introduce some debug_counters. --- debug_counter.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'debug_counter.h') diff --git a/debug_counter.h b/debug_counter.h index faf876a8c4..83ae701524 100644 --- a/debug_counter.h +++ b/debug_counter.h @@ -143,6 +143,11 @@ RB_DEBUG_COUNTER(gc_major_shady) RB_DEBUG_COUNTER(gc_major_force) RB_DEBUG_COUNTER(gc_major_oldmalloc) +RB_DEBUG_COUNTER(gc_isptr_trial) +RB_DEBUG_COUNTER(gc_isptr_range) +RB_DEBUG_COUNTER(gc_isptr_align) +RB_DEBUG_COUNTER(gc_isptr_maybe) + /* object allocation counts: * * * obj_newobj: newobj counts -- cgit v1.2.3