зеркало из https://github.com/github/ruby.git
YJIT: Count cold_iseq_entry by default (#8654)
This commit is contained in:
Родитель
55c5ebe0a0
Коммит
48c6cea330
|
@ -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 };
|
||||
|
|
Загрузка…
Ссылка в новой задаче