10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0495624 commit b2fef17Copy full SHA for b2fef17
test/fiddle/test_closure.rb
@@ -102,11 +102,14 @@ def test_block_caller
102
end
103
104
105
- def test_memsize
+ def test_memsize_ruby_dev_42480
106
require 'objspace'
107
- bug = '[ruby-dev:42480]'
108
n = 10000
109
- assert_equal(n, n.times {ObjectSpace.memsize_of(Closure.allocate)}, bug)
+ n.times do
+ Closure.create(:int, [:void]) do |closure|
110
+ ObjectSpace.memsize_of(closure)
111
+ end
112
113
114
115
%w[INT SHORT CHAR LONG LONG_LONG].each do |name|
0 commit comments