aboutsummaryrefslogtreecommitdiffstats
path: root/gc.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-02 11:59:50 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-02 11:59:50 +0000
commit37067ed905954940bafb3b2cc4e1d67c374d31f9 (patch)
treec57d1ef0dc0168291159b5b53f90623b580df33d /gc.h
parentb230d20ec4d4b34dbbdfe5830fee8095d41af044 (diff)
downloadruby-37067ed905954940bafb3b2cc4e1d67c374d31f9.tar.gz
* gc.c, gc.h (rb_objspace_each_objects_without_setup):
Add a new (hidden) C-API to iterate objspace snapshot. This API is not safe to call any C-APIs in a given callback function. Be careful to use this C-API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.h')
-rw-r--r--gc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gc.h b/gc.h
index ae62b091af..d3bf71026c 100644
--- a/gc.h
+++ b/gc.h
@@ -97,6 +97,10 @@ void rb_objspace_each_objects(
int (*callback)(void *start, void *end, size_t stride, void *data),
void *data);
+void rb_objspace_each_objects_without_setup(
+ int (*callback)(void *, void *, size_t, void *),
+ void *data);
+
RUBY_SYMBOL_EXPORT_END
#endif /* RUBY_GC_H */