Project

General

Profile

« Previous | Next » 

Revision b9332ac8

Added by k0kubun (Takashi Kokubun) over 2 years ago

MJIT: Cancel all on disastrous situations (#7019)

I noticed this while running test_yjit with --mjit-call-threshold=1,
which redefines Integer#<. When Ruby is monkey-patched,
MJIT itself could be broken.

Similarly, Ruby scripts could break MJIT in many different ways. I
prepared the same set of hooks as YJIT so that we could possibly
override it and disable it on those moments. Every constant under
RubyVM::MJIT is private and thus it's an unsupported behavior though.