summaryrefslogtreecommitdiff
path: root/test/objspace
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-16 17:44:45 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-16 17:44:45 +0000
commit45e8ccde005dd8191c4c745b6868d0de4ee66a40 (patch)
treedddb3d866b32a45ddb720650fd45cac7a24fdc53 /test/objspace
parent54fa33ea491bb1c47400d4534f649efbd47767e3 (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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb
index 832c8d7..5255841 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