mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Show ObjectSpace.count_objects to debug NoMemoryError
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7b297f0c79
commit
7b53830aea
1 changed files with 12 additions and 1 deletions
|
@ -26,4 +26,15 @@ module Test::Unit
|
|||
end
|
||||
end
|
||||
|
||||
exit Test::Unit::AutoRunner.run(true, src_testdir)
|
||||
begin
|
||||
require 'objspace'
|
||||
h = {}
|
||||
raise
|
||||
exit Test::Unit::AutoRunner.run(true, src_testdir)
|
||||
rescue
|
||||
ObjectSpace.count_objects(h)
|
||||
p h
|
||||
ObjectSpace.count_objects_size(h)
|
||||
p h
|
||||
raise
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue