From: "Iñaki Baz Castillo" Date: 2012-05-18T02:32:42+09:00 Subject: Re: rb_gc_register_address() or rb_gc_mark()? 2012/5/17 Iñaki Baz Castillo : > 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? -- Iñaki Baz Castillo