summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-10-19 10:54:35 -0700
committerGitHub <noreply@github.com>2023-10-19 10:54:35 -0700
commit6beb09c2c99a2575027bdbc60a6fbb099416f74d (patch)
treedc0033f88b48f9cfd7ecaa67ca055a09a4437f96 /yjit.rb
parent62e340251b577e3a9d11ac5c2b75ad49b8036294 (diff)
YJIT: Add RubyVM::YJIT.enable (#8705)
Diffstat (limited to 'yjit.rb')
-rw-r--r--yjit.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/yjit.rb b/yjit.rb
index 3374e4419c..295e88ef34 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -11,7 +11,7 @@
module RubyVM::YJIT
# Check if YJIT is enabled
def self.enabled?
- Primitive.cexpr! 'RBOOL(rb_yjit_enabled_p())'
+ Primitive.cexpr! 'RBOOL(rb_yjit_enabled_p)'
end
# Check if --yjit-stats is used.
@@ -29,9 +29,9 @@ module RubyVM::YJIT
Primitive.rb_yjit_reset_stats_bang
end
- # Resume YJIT compilation after paused on startup with --yjit-pause
- def self.resume
- Primitive.rb_yjit_resume
+ # Enable YJIT compilation.
+ def self.enable
+ Primitive.rb_yjit_enable
end
# If --yjit-trace-exits is enabled parse the hashes from