summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2023-10-19 10:54:35 -0700
committer<[email protected]>2023-10-19 10:54:35 -0700
commit6beb09c2c99a2575027bdbc60a6fbb099416f74d ()
treedc0033f88b48f9cfd7ecaa67ca055a09a4437f96 /yjit.rb
parent62e340251b577e3a9d11ac5c2b75ad49b8036294 (diff)
YJIT: Add RubyVM::YJIT.enable (#8705)
-rw-r--r--yjit.rb8
1 files changed, 4 insertions, 4 deletions
@@ -11,7 +11,7 @@
module RubyVM::YJIT
# Check if YJIT is enabled
def self.enabled?
- 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
end
# If --yjit-trace-exits is enabled parse the hashes from