summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authortmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 10:30:38 +0000
committertmm1 <tmm1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-05 10:30:38 +0000
commit4876dd3fb1715b4ea11051532ed3a3c2e6b0a628 (patch)
tree6efa76e4c572558ac38c237181e25e0fa2d766b8 /NEWS
parent6692436b9fe206c130fbfa3fa7b41e18c1048f4a (diff)
gc.c: add GC.latest_gc_info()
* gc.c (struct rb_objspace): rename internal last_collection_flags to latest_gc_info * gc.c (gc_latest_collection_info): add GC.latest_gc_info() with similar behavior to GC.stat() * gc.c (rb_gc_latest_gc_info): new c-api for above * gc.c (gc_stat_internal): remove :last_collection_flags from GC.stat * gc.c (gc_profile_decode_flags): remove GC::Profiler.decode_flags * include/ruby/intern.h (rb_gc_latest_gc_info): export new c-api * test/ruby/test_gc.rb (class TestGc): test for new behavior * NEWS: note about new api * gc.c (gc_stat_internal): raise TypeError on wrong type * gc.c (gc_stat): fix error message git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS2
1 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 22a6b4735c..4718f5482f 100644
--- a/NEWS
+++ b/NEWS
@@ -322,6 +322,8 @@ with all sufficient information, see the ChangeLog file.
* rb_gc_stat() added. This allows access to specific GC.stat() values from C
without any allocation overhead.
+* rb_gc_latest_gc_info() added. This allows access to GC.latest_gc_info().
+
* rb_postponed_job_register() added. Takes a function callback which is invoked
when the VM is in a consistent state, i.e. to perform work from a C signal
handler.