On 9 Apr 2003, Steve Hart wrote:
> 1) A more detailed explanation of THE GC interaction would be good. I'
> not sure if you need to do both marking and rb_global_variable and/or
> rb_gc_register_address. If I call rb_ary_new2 in my C code should I
> always inform the GC? I understand that I need to use a mark function
> for wrapped c classes but where do I get the VALUE from to pass to the
> mark function?
> If I am marking and object correctly what do I do when I want to free
> it off - just stop marking?

Please read:

http://www.rubygarden.org/ruby?GCAndExtensions

  Tobias