From 37067ed905954940bafb3b2cc4e1d67c374d31f9 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 2 Apr 2014 11:59:50 +0000 Subject: * 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 --- gc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gc.h') 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 */ -- cgit v1.2.3