diff options
author | Peter Zhu <[email protected]> | 2025-05-07 15:13:57 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2025-05-08 10:36:27 -0400 |
commit | 3f5080e7676c375b7724a08fe711765d30a590eb (patch) | |
tree | 14b0e6d2ec9264e09a179ea378d6ff815484ad99 /gc/default/default.c | |
parent | 46a82408846fe1ec5ad6f8fbb883c886abae079a (diff) |
Stop checking for USE_DEBUG_COUNTER in default.c
We don't need to check for USE_DEBUG_COUNTER because the code is no-op
if USE_DEBUG_COUNTER is not enabled.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13269
Diffstat (limited to 'gc/default/default.c')
-rw-r--r-- | gc/default/default.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gc/default/default.c b/gc/default/default.c index 5f5a6434c8..4e6b259ca5 100644 --- a/gc/default/default.c +++ b/gc/default/default.c @@ -6358,7 +6358,6 @@ gc_start(rb_objspace_t *objspace, unsigned int reason) reason, do_full_mark, !is_incremental_marking(objspace), objspace->flags.immediate_sweep); -#if USE_DEBUG_COUNTER RB_DEBUG_COUNTER_INC(gc_count); if (reason & GPR_FLAG_MAJOR_MASK) { @@ -6377,7 +6376,6 @@ gc_start(rb_objspace_t *objspace, unsigned int reason) (void)RB_DEBUG_COUNTER_INC_IF(gc_minor_capi, reason & GPR_FLAG_CAPI); (void)RB_DEBUG_COUNTER_INC_IF(gc_minor_stress, reason & GPR_FLAG_STRESS); } -#endif objspace->profile.count++; objspace->profile.latest_gc_info = reason; |