blob: b7008ea7314bf9a71735911d913da3d9b6f63e79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require "test/unit"
class TestObjSpaceRactor < Test::Unit::TestCase
def test_tracing_does_not_crash
assert_ractor(<<~RUBY, require: 'objspace')
ObjectSpace.trace_object_allocations do
r = Ractor.new do
obj = 'a' * 1024
Ractor.yield obj
end
r.take
r.take
end
RUBY
end
end
|