mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 06:25:31 +02:00
Fix up to require objspace
This commit is contained in:
parent
b998e6b79d
commit
f1adc5866a
1 changed files with 2 additions and 2 deletions
|
@ -2690,11 +2690,11 @@ EOS
|
|||
|
||||
def test_warmup_promote_all_objects_to_oldgen
|
||||
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
|
||||
require 'objspace'
|
||||
begin;
|
||||
obj = Object.new
|
||||
|
||||
Process.warmup
|
||||
refute_include(ObjectSpace.dump(obj), '"old":true')
|
||||
assert_not_include(ObjectSpace.dump(obj), '"old":true')
|
||||
Process.warmup
|
||||
assert_include(ObjectSpace.dump(obj), '"old":true')
|
||||
end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue