# GC-related

**URL:** <https://www.ruby-forum.com/t/gc-related/124146>\
**Category:** Ruby\
**Created:** [December 25, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/gc-related/124146 "2007-12-25T12:26:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaeln](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b19c9b/32.png) [@michaeln](https://www.ruby-forum.com/u/michaeln)\
**Post date:** [December 25, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/gc-related/124146/1 "2007-12-25T12:26:41Z")

</div>

Hi,

BTW, is there a Rubinius related mailing list? I couldn’t find one!

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

---

<div class="post-metadata">

**Author:** ![michaeln](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b19c9b/32.png) [@michaeln](https://www.ruby-forum.com/u/michaeln)\
**Post date:** [December 25, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/gc-related/124146/2 "2007-12-25T12:40:43Z")

</div>

Hi Michael,

On Dec 25, 2007 4:55 PM, Michael N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://groups.google.com/group/rubinius-dev?hl=en)

> to reducing overhead when doing a conservative cycle (or that’s how I

–  
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](http://gnufied.org)
