Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class method

ZJIT.induce_side_exit!

induce_side_exit!(= nil)

A directive for the compiler to exit out of compiled code at the call site of this method. To show this to ZJIT, say ::RubyVM::ZJIT.induce_side_exit! verbatim. Other forms are too dynamic to detect during compilation.

Actually running this method does nothing, whether ZJIT sees the call or not.