Prior to this commit, the last-compiled code has not been used because MJIT worker is stopped before setting the code, and compaction has also been skipped.
But it was not intentional and wait: true pause should wait until those two things by its feature.
RubyVM::MJIT.pause(wait: true) should wait
for all compilations and compaction.
Prior to this commit, the last-compiled code has not been used because
MJIT worker is stopped before setting the code, and compaction has also
been skipped.
But it was not intentional and
wait: truepause should wait untilthose two things by its feature.