aboutsummaryrefslogtreecommitdiffstats
path: root/yjit
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-10-10 14:54:19 -0700
committerGitHub <noreply@github.com>2023-10-10 14:54:19 -0700
commit4d0a619f712bfd189dcedcf9998b143a731a2211 (patch)
tree1d2b9cf61d66277f34e1abfe12d0eb36f130fa02 /yjit
parentef7fa8bd0e174b8a96681abdce57b5b6afbe5c32 (diff)
downloadruby-4d0a619f712bfd189dcedcf9998b143a731a2211.tar.gz
YJIT: Allow --yjit-trace-exits on release builds (#8619)
Diffstat (limited to 'yjit')
-rw-r--r--yjit/src/stats.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs
index 24861205d1..653c832991 100644
--- a/yjit/src/stats.rs
+++ b/yjit/src/stats.rs
@@ -70,11 +70,6 @@ static mut YJIT_EXIT_LOCATIONS: Option<YjitExitLocations> = None;
impl YjitExitLocations {
/// Initialize the yjit exit locations
pub fn init() {
- // Return if the stats feature is disabled
- if !cfg!(feature = "stats") {
- return;
- }
-
// Return if --yjit-trace-exits isn't enabled
if !get_option!(gen_trace_exits) {
return;
@@ -124,11 +119,6 @@ impl YjitExitLocations {
return;
}
- // Return if the stats feature is disabled
- if !cfg!(feature = "stats") {
- return;
- }
-
// Return if --yjit-trace-exits isn't enabled
if !get_option!(gen_trace_exits) {
return;
@@ -538,7 +528,6 @@ pub extern "C" fn rb_yjit_get_stats(_ec: EcPtr, _ruby_self: VALUE, context: VALU
/// to be enabled.
#[no_mangle]
pub extern "C" fn rb_yjit_trace_exit_locations_enabled_p(_ec: EcPtr, _ruby_self: VALUE) -> VALUE {
- #[cfg(feature = "stats")]
if get_option!(gen_trace_exits) {
return Qtrue;
}
@@ -555,11 +544,6 @@ pub extern "C" fn rb_yjit_get_exit_locations(_ec: EcPtr, _ruby_self: VALUE) -> V
return Qnil;
}
- // Return if the stats feature is disabled
- if !cfg!(feature = "stats") {
- return Qnil;
- }
-
// Return if --yjit-trace-exits isn't enabled
if !get_option!(gen_trace_exits) {
return Qnil;
@@ -716,11 +700,6 @@ pub extern "C" fn rb_yjit_record_exit_stack(_exit_pc: *const VALUE)
return;
}
- // Return if the stats feature is disabled
- if !cfg!(feature = "stats") {
- return;
- }
-
// Return if --yjit-trace-exits isn't enabled
if !get_option!(gen_trace_exits) {
return;