diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-27 18:14:28 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-27 18:14:28 +0000 |
| commit | 30dbed383786362eaf70ad584a8b382a12b68fef (patch) | |
| tree | bc0325c9f735daec0d64d6f3f8ffcb27380352ee /include/ruby/debug.h | |
| parent | b01c4ddfce5faa7e0bb982a41319c7e44141c5e3 (diff) | |
* ext/objspace/gc_hook.c, ext/objspace/objspace.c: add new methods to
hook GC invocation.
* ObjectSpace.after_gc_start_hook=(proc)
* ObjectSpace.after_gc_end_hook=(proc)
Note that hooks are not kicked immediately. Procs are kicked
at postponed_job.
This feature is a sample of new internal event and
rb_postponed_job API.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/debug.h')
0 files changed, 0 insertions, 0 deletions
