1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* NEWS: Add ObjectSpace.after_gc_{start,end}_hook=

* ext/objspace/objspace_dump.c: [DOC] catch up dump/dump_all to r43679

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tmm1 2013-11-25 21:46:00 +00:00
parent c21f62d0f8
commit 302743d3e7
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Tue Nov 26 06:42:50 2013 Aman Gupta <ruby@tmm1.net>
* NEWS: Add ObjectSpace.after_gc_{start,end}_hook=
* ext/objspace/objspace_dump.c: [DOC] catch up dump/dump_all to r43679
Tue Nov 26 04:12:10 2013 Eric Hodel <drbrain@segment7.net>
* lib/rubygems: Update to RubyGems master 612f85a. Notable changes:

2
NEWS
View file

@ -185,6 +185,8 @@ with all sufficient information, see the ChangeLog file.
* ObjectSpace.allocation_method_id
* ObjectSpace.allocation_generation
* ObjectSpace.reachable_objects_from_root
* ObjectSpace.after_gc_start_hook=
* ObjectSpace.after_gc_end_hook=
* ObjectSpace.dump
* ObjectSpace.dump_all

View file

@ -330,8 +330,8 @@ dump_result(struct dump_config *dc, VALUE output)
/*
* call-seq:
* ObjectSpace.dump(obj[, output: :string]) # => "{ ... }"
* ObjectSpace.dump(obj, output: :file) # => "/tmp/rubyobj000000"
* ObjectSpace.dump(obj, output: :stdout) # => nil
* ObjectSpace.dump(obj, output: :file) # => #<File:/tmp/rubyobj20131125-88733-1xkfmpv.json>
* ObjectSpace.dump(obj, output: :stdout) # => nil
*
* Dump the contents of a ruby object as JSON.
*
@ -359,7 +359,7 @@ objspace_dump(int argc, VALUE *argv, VALUE os)
/*
* call-seq:
* ObjectSpace.dump_all([output: :file]) # => "/tmp/rubyheap000000"
* ObjectSpace.dump_all([output: :file]) # => #<File:/tmp/rubyheap20131125-88469-laoj3v.json>
* ObjectSpace.dump_all(output: :stdout) # => nil
* ObjectSpace.dump_all(output: :string) # => "{...}\n{...}\n..."
*