diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-16 17:44:45 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-09-16 17:44:45 +0000 |
commit | 45e8ccde005dd8191c4c745b6868d0de4ee66a40 (patch) | |
tree | dddb3d866b32a45ddb720650fd45cac7a24fdc53 /test/objspace | |
parent | 54fa33ea491bb1c47400d4534f649efbd47767e3 (diff) |
Use JSON lines format for full heap dumps.
This commit changes full heap dumps back to using JSON lines format
(http://jsonlines.org) so that we can process very large heaps without
loading the entire heap in to memory at once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/objspace')
-rw-r--r-- | test/objspace/test_objspace.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb index 832c8d7f8e..52558418bf 100644 --- a/test/objspace/test_objspace.rb +++ b/test/objspace/test_objspace.rb @@ -316,7 +316,7 @@ class TestObjSpace < Test::Unit::TestCase assert_ruby_status(args, "#{<<~"begin;"}\n#{<<~"end;"}") begin; IO.popen(ARGV) do |f| - JSON.load(f) + f.each_line.map { |x| JSON.load(x) } end end; end |