From: Kim Burgestrand Date: 2011-07-03T03:35:44+09:00 Subject: Re: Ruby C API:How to prevent a VALUE being collected by the garbage collecter? On Saturday, 2 July 2011 at 18:35, Quintus wrote: > > Ruby C API:How to prevent a VALUE being collected by the garbage > > collecter? Is there any function to call? If you want it to never be collected, make it a global variable. rb_gc_mark will only do what you want until the next GC cycle. — Kim Burgestrand (burgestrand.se)