diff options
author | Takashi Kokubun <[email protected]> | 2021-01-13 22:36:45 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2021-01-13 22:46:51 -0800 |
commit | e1fee7f949cb6719122672fa1081c60984a5339f (patch) | |
tree | 3a851fdfcdbf395f5783aecaacf521308ddfd74e /test/ruby/test_thread.rb | |
parent | 4d13f3e9da6298a1f8154def2e341ecb7c5fe116 (diff) |
Rename RubyVM::MJIT to RubyVM::JIT
because the name "MJIT" is an internal code name, it's inconsistent with
--jit while they are related to each other, and I want to discourage future
JIT implementation-specific (e.g. MJIT-specific) APIs by this rename.
[Feature #17490]
Diffstat (limited to 'test/ruby/test_thread.rb')
-rw-r--r-- | test/ruby/test_thread.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 3852cb7020..6005e5b001 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -309,7 +309,7 @@ class TestThread < Test::Unit::TestCase s += 1 end Thread.pass until t.stop? - sleep 1 if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? # t.stop? behaves unexpectedly with --jit-wait + sleep 1 if defined?(RubyVM::JIT) && RubyVM::JIT.enabled? # t.stop? behaves unexpectedly with --jit-wait assert_equal(1, s) t.wakeup Thread.pass while t.alive? @@ -1338,7 +1338,7 @@ q.pop opts = { timeout: 5, timeout_error: nil } # prevent SIGABRT from slow shutdown with MJIT - opts[:reprieve] = 3 if defined?(RubyVM::MJIT) && RubyVM::MJIT.enabled? + opts[:reprieve] = 3 if defined?(RubyVM::JIT) && RubyVM::JIT.enabled? assert_normal_exit(<<-_end, '[Bug #8996]', **opts) Thread.report_on_exception = false |