From: hemant Date: 2007-12-25T20:40:10+09:00 Subject: Re: [Rubinius-question] GC-related Hi Michael, On Dec 25, 2007 4:55 PM, Michael Neumann wrote: > Hi, > > BTW, is there a Rubinius related mailing list? I couldn't find one! There you go! http://groups.google.com/group/rubinius-dev?hl=en > > If not, here is my problem/question: > > I've a lot of C++ objects, and wrap them in Ruby objects (just like > every C/C++ extension does using Data_Wrap_Struct). This creates the > same amount of Ruby objects of course. I'd love to avoid this overhead > by allocating a few more bytes for the C++ object to then "embed" the > Ruby object into the C++ object (or vice versa). But that doesn't work > with MRI/Ruby, because the GC assumes the allocated memory to be within > a well known memory frame and of a special size or aligned, mainly due > to reducing overhead when doing a conservative cycle (or that's how I > understand it). > > How is it done in Rubinius? Is it possible to allocate any number of > bytes per Ruby object? In-line? > > Thanks in advance, and Merry Christmas! > > Regards, > > Michael > > -- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org