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.
This commit is contained in:
parent
46a8240884
commit
3f5080e767
Notes:
git
2025-05-08 14:36:40 +00:00
@ -6358,7 +6358,6 @@ gc_start(rb_objspace_t *objspace, unsigned int reason)
|
|||||||
reason,
|
reason,
|
||||||
do_full_mark, !is_incremental_marking(objspace), objspace->flags.immediate_sweep);
|
do_full_mark, !is_incremental_marking(objspace), objspace->flags.immediate_sweep);
|
||||||
|
|
||||||
#if USE_DEBUG_COUNTER
|
|
||||||
RB_DEBUG_COUNTER_INC(gc_count);
|
RB_DEBUG_COUNTER_INC(gc_count);
|
||||||
|
|
||||||
if (reason & GPR_FLAG_MAJOR_MASK) {
|
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_capi, reason & GPR_FLAG_CAPI);
|
||||||
(void)RB_DEBUG_COUNTER_INC_IF(gc_minor_stress, reason & GPR_FLAG_STRESS);
|
(void)RB_DEBUG_COUNTER_INC_IF(gc_minor_stress, reason & GPR_FLAG_STRESS);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
objspace->profile.count++;
|
objspace->profile.count++;
|
||||||
objspace->profile.latest_gc_info = reason;
|
objspace->profile.latest_gc_info = reason;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user