summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-10-14 21:00:50 -0700
committerGitHub <noreply@github.com>2023-10-14 21:00:50 -0700
commit48c6cea330259a66ccf9757b06418b0653ec1dfb (patch)
treef5ee93d22ac7f7168fb2704c28a284a2582cf429
parent55c5ebe0a02eee319eb6a965a08bb53c5dcc7feb (diff)
YJIT: Count cold_iseq_entry by default (#8654)
-rw-r--r--yjit/src/stats.rs5
1 files changed, 0 insertions, 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 };