From 4da569b53ef355e7d11085ff448599f25599bad3 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Mon, 11 Aug 2025 22:27:27 +0100 Subject: [PATCH] [DOC] YJIT: Add YJIT to autolink_excluded_words --- .rdoc_options | 1 + yjit.rb | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.rdoc_options b/.rdoc_options index 76c1c8e0db..b8b511efe6 100644 --- a/.rdoc_options +++ b/.rdoc_options @@ -20,5 +20,6 @@ autolink_excluded_words: - Ruby - Set - ZJIT +- YJIT canonical_root: https://docs.ruby-lang.org/en/master diff --git a/yjit.rb b/yjit.rb index 1655529b5e..751400a43e 100644 --- a/yjit.rb +++ b/yjit.rb @@ -1,14 +1,14 @@ # frozen_string_literal: true # :markup: markdown -# This module allows for introspection of \YJIT, CRuby's just-in-time compiler. +# This module allows for introspection of YJIT, CRuby's just-in-time compiler. # Everything in the module is highly implementation specific and the API might # be less stable compared to the standard library. # -# This module may not exist if \YJIT does not support the particular platform +# This module may not exist if YJIT does not support the particular platform # for which CRuby is built. module RubyVM::YJIT - # Check if \YJIT is enabled. + # Check if YJIT is enabled. def self.enabled? Primitive.cexpr! 'RBOOL(rb_yjit_enabled_p)' end @@ -33,8 +33,8 @@ module RubyVM::YJIT Primitive.rb_yjit_reset_stats_bang end - # Enable \YJIT compilation. `stats` option decides whether to enable \YJIT stats or not. `log` decides - # whether to enable \YJIT compilation logging or not. Optional `mem_size` and `call_threshold` can be + # Enable YJIT compilation. `stats` option decides whether to enable YJIT stats or not. `log` decides + # whether to enable YJIT compilation logging or not. Optional `mem_size` and `call_threshold` can be # provided to override default configuration. # # * `stats`: