summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'yjit.rb')
-rw-r--r--yjit.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/yjit.rb b/yjit.rb
index 7d56bf0517..343f5f0ed8 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -29,6 +29,11 @@ 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
# Primitive.rb_yjit_get_exit_locations into a format readable
# by Stackprof. This will allow us to find the exact location of a