2012/5/17 Iaki Baz Castillo <ibc / aliax.net>:
> 3) Setting a mark function in Data_Wrap_Struct, and within such a mark
> function do:
>   rb_gc_mark(uv_handle->data);
>
> I've read point 3 in this thread:
> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/147514

I would like to learn a bit more about rb_gc_mark(). In my experiments
such a function is never executed if the object is not assigned to a
variable or stored in a hash/array/whatever. But, in case it's stored
somewhere, then the mark() function is executed multiple times by
Ruby.

Is it the normal behavior?

-- 
Iaki Baz Castillo
<ibc / aliax.net>