From 48c6cea330259a66ccf9757b06418b0653ec1dfb Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sat, 14 Oct 2023 21:00:50 -0700 Subject: [PATCH] YJIT: Count cold_iseq_entry by default (#8654) --- yjit/src/stats.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs index f20fd81242..859f57c966 100644 --- a/yjit/src/stats.rs +++ b/yjit/src/stats.rs @@ -573,11 +573,6 @@ pub extern "C" fn rb_yjit_get_exit_locations(_ec: EcPtr, _ruby_self: VALUE) -> V #[no_mangle] pub extern "C" fn rb_yjit_incr_counter(counter_name: *const std::os::raw::c_char) { use std::ffi::CStr; - - if !get_option!(gen_stats) { - return; - } - let counter_name = unsafe { CStr::from_ptr(counter_name).to_str().unwrap() }; let counter_ptr = get_counter_ptr(counter_name); unsafe { *counter_ptr += 1 };