From: nobu.nokada@... Date: 2005-08-12T21:58:31+09:00 Subject: Re: force_recycle Hi, At Fri, 12 Aug 2005 19:19:49 +0900, nobuyoshi nakada wrote in [ruby-talk:151854]: > @@ -1917,4 +2047,7 @@ Init_GC() > rb_define_singleton_method(rb_mGC, "enable", rb_gc_enable, 0); > rb_define_singleton_method(rb_mGC, "disable", rb_gc_disable, 0); > +#ifdef DEBUG_REACHABILITY > + rb_define_singleton_method(rb_mGC, "reachability_paths", garbage_collect0, 1); > +#endif > rb_define_method(rb_mGC, "garbage_collect", rb_gc_start, 0); > Oops, a wrapper function is needed. static VALUE rbx_reachability_paths(mod, obj) VALUE mod; VALUE obj; { if (rb_special_const_p(obj)) return Qnil; return garbage_collect0(obj); } -- Nobu Nakada