mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
YJIT: Enable out of memory tests
As of [1] and [2], YJIT has enough support for out of memory conditions to pass these two basic tests. OOM code paths are prone to bugs since they are rarely exercised in common workloads. We might want to add CI runs that stress test these code paths. Maybe outside of GitHub Actions for capacity reasons. [1]:f41b4d44f9
[2]:b5b6ab4194
This commit is contained in:
parent
4a6ca12904
commit
34b5e2566d
Notes:
git
2021-12-05 01:36:09 +09:00
1 changed files with 3 additions and 3 deletions
|
@ -2450,10 +2450,10 @@ assert_equal 'ok', %q{
|
|||
RubyVM::YJIT.simulate_oom! if defined?(RubyVM::YJIT)
|
||||
|
||||
nimai(false)
|
||||
} if false # disabled for now since OOM crashes in the test harness
|
||||
}
|
||||
|
||||
# block invalidation while out of memory
|
||||
assert_equal 'new', %q{
|
||||
# test block invalidation while out of memory
|
||||
def foo
|
||||
:old
|
||||
end
|
||||
|
@ -2472,7 +2472,7 @@ assert_equal 'new', %q{
|
|||
end
|
||||
|
||||
test
|
||||
} if false # disabled for now since OOM crashes in the test harness
|
||||
}
|
||||
|
||||
assert_equal 'ok', %q{
|
||||
# Try to compile new method while OOM
|
||||
|
|
Loading…
Add table
Reference in a new issue