aboutsummaryrefslogtreecommitdiffstats
path: root/debug_counter.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-05-07 14:06:25 +0900
committerKoichi Sasada <ko1@atdot.net>2019-05-07 14:10:43 +0900
commit4dc5d3c5dd43b4cc54517e604c16ecfc808e5481 (patch)
tree1df2d0be74238f4b6e411282577d8d732d428747 /debug_counter.h
parent7e72ce0f734113e3e215a74b440092443e957d45 (diff)
downloadruby-4dc5d3c5dd43b4cc54517e604c16ecfc808e5481.tar.gz
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.
Diffstat (limited to 'debug_counter.h')
-rw-r--r--debug_counter.h5
1 files changed, 5 insertions, 0 deletions
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