mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 14:34:39 +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
|
def test_warmup_promote_all_objects_to_oldgen
|
||||||
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
|
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
|
||||||
|
require 'objspace'
|
||||||
begin;
|
begin;
|
||||||
obj = Object.new
|
obj = Object.new
|
||||||
|
|
||||||
Process.warmup
|
assert_not_include(ObjectSpace.dump(obj), '"old":true')
|
||||||
refute_include(ObjectSpace.dump(obj), '"old":true')
|
|
||||||
Process.warmup
|
Process.warmup
|
||||||
assert_include(ObjectSpace.dump(obj), '"old":true')
|
assert_include(ObjectSpace.dump(obj), '"old":true')
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue