Skip to content

Commit

Permalink
Don't use postponed jobs on Ruby 3.3+YJIT
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Nov 8, 2023
1 parent 726a172 commit c771fd4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/stackprof.rb
Expand Up @@ -5,7 +5,11 @@
end

if defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?
StackProf.use_postponed_job!
if RUBY_VERSION < "3.3"
# On 3.3 we don't need postponed jobs:
# https://github.com/ruby/ruby/commit/a1dc1a3de9683daf5a543d6f618e17aabfcb8708
StackProf.use_postponed_job!
end
elsif RUBY_VERSION == "3.2.0"
# 3.2.0 crash is the signal is received at the wrong time.
# Fixed in https://github.com/ruby/ruby/pull/7116
Expand Down

0 comments on commit c771fd4

Please sign in to comment.