summaryrefslogtreecommitdiff
path: root/yjit/src
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2025-01-30 18:00:53 -0500
committerAlan Wu <[email protected]>2025-01-30 18:00:53 -0500
commit9497820bcfbefe82d2290bc60093e9564df64935 (patch)
tree9ccd6d70dc3312df76797114cfa699bfb02be9e9 /yjit/src
parent95bf3590871978f9063936444cd2a44a13975d39 (diff)
YJIT: Remove comments that refer to the removed "stats" feature
The Cargo feature was removed in 2de8b5b8054f311c4cee112dcab5208b66cc62a4 and it's available in all build configs now. [ci skip]
Diffstat (limited to 'yjit/src')
-rw-r--r--yjit/src/stats.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs
index d16741b17c..d04f2836ef 100644
--- a/yjit/src/stats.rs
+++ b/yjit/src/stats.rs
@@ -1,5 +1,5 @@
//! Everything related to the collection of runtime stats in YJIT
-//! See the stats feature and the --yjit-stats command-line option
+//! See the --yjit-stats command-line option
use std::alloc::{GlobalAlloc, Layout, System};
use std::ptr::addr_of_mut;
@@ -668,8 +668,7 @@ pub extern "C" fn rb_yjit_get_stats(_ec: EcPtr, _ruby_self: VALUE, key: VALUE) -
/// Primitive called in yjit.rb
///
-/// Check if trace_exits generation is enabled. Requires the stats feature
-/// to be enabled.
+/// Check if trace_exits generation is enabled.
#[no_mangle]
pub extern "C" fn rb_yjit_trace_exit_locations_enabled_p(_ec: EcPtr, _ruby_self: VALUE) -> VALUE {
if get_option!(trace_exits).is_some() {
@@ -693,7 +692,7 @@ pub extern "C" fn rb_yjit_get_exit_locations(_ec: EcPtr, _ruby_self: VALUE) -> V
return Qnil;
}
- // If the stats feature is enabled, pass yjit_raw_samples and yjit_line_samples
+ // Pass yjit_raw_samples and yjit_line_samples
// to the C function called rb_yjit_exit_locations_dict for parsing.
let yjit_raw_samples = YjitExitLocations::get_raw_samples();
let yjit_line_samples = YjitExitLocations::get_line_samples();
@@ -915,7 +914,7 @@ fn rb_yjit_gen_stats_dict(key: VALUE) -> VALUE {
}
/// Record the backtrace when a YJIT exit occurs. This functionality requires
-/// that the stats feature is enabled as well as the --yjit-trace-exits option.
+/// the --yjit-trace-exits option.
///
/// This function will fill two Vec's in YjitExitLocations to record the raw samples
/// and line samples. Their length should be the same, however the data stored in