From: Magnus Holm Date: 2011-10-01T00:14:25+09:00 Subject: [ruby-core:39791] Re: Running the YARV parser/compiler without GC? On Fri, Sep 30, 2011 at 16:06, SASADA Koichi wrote: > (2011/09/30 7:09), Magnus Holm wrote: >> Hey smart folks, >> >> I'm wondering if it's possible to parser and compile Ruby code (into >> YARV bytecode) without running the garbage collector at all (for >> embedded reasons). > > rb_gc_disable() works for you? How to prevent memory leaks? Is there a simple way to just "collect everything that Ruby has allocated"? Hm��� Doesn't that mean I'll also have to initialize Ruby every time I want to compile something? Also, what's the simplest way to create a static library that includes just the compiler and its dependencies?