diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-10-19 10:54:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-19 10:54:35 -0700 |
commit | 6beb09c2c99a2575027bdbc60a6fbb099416f74d (patch) | |
tree | dc0033f88b48f9cfd7ecaa67ca055a09a4437f96 /yjit.rb | |
parent | 62e340251b577e3a9d11ac5c2b75ad49b8036294 (diff) | |
download | ruby-6beb09c2c99a2575027bdbc60a6fbb099416f74d.tar.gz |
YJIT: Add RubyVM::YJIT.enable (#8705)
Diffstat (limited to 'yjit.rb')
-rw-r--r-- | yjit.rb | 8 |
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())' + 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 |