blob: 881528845b0d369fd4a3f973302d1f81713c58fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
short_lived_ary = []
if RUBY_VERSION >= "2.2.0"
GC.start(full_mark: false, immediate_mark: true, lazy_sweep: false)
end
i = 0
short_lived = ''
while i<30_000_000 # while loop 1
short_lived_ary[0] = short_lived # write barrier
i+=1
end
|