summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-09-26 12:53:41 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-09-26 16:28:34 +0900
commit5d8f112505fbc3f9b008ce4ec40fc74f9f623c4a (patch)
tree03ce4f788de6b9f6589890e3ded08a2d12cbc8d6 /test/lib
parent47a234954a119c6957e947f5769c55d0b40c6004 (diff)
downloadruby-5d8f112505fbc3f9b008ce4ec40fc74f9f623c4a.tar.gz
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: true` pause should wait until those two things by its feature.
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/jit_support.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb
index acda166eb2..fc5c12e871 100644
--- a/test/lib/jit_support.rb
+++ b/test/lib/jit_support.rb
@@ -3,6 +3,7 @@ require 'rbconfig'
module JITSupport
JIT_TIMEOUT = 600 # 10min for each...
JIT_SUCCESS_PREFIX = 'JIT success \(\d+\.\dms\)'
+ JIT_COMPACTION_PREFIX = 'JIT compaction \(\d+\.\dms\)'
UNSUPPORTED_COMPILERS = [
%r[\Aicc\b],
%r[\A/opt/developerstudio\d+\.\d+/bin/cc\z],