Hi, I'm in C land without GVL and give value to a static VALUE
variable defined in my .c file and later I acquire the GVL and want to
use such a VALUE variable:


// GVL release here:

static VALUE my_variable;

my_variable = rb_new_str("hello", 5);

rb_thread_call_with_gvl(function_with_gvl, NULL);



and function_with_gvl() does this:


static VALUE function_with_gvl(void)
{
  return rb_funcall(myObject, rb_intern("some_method"), 1, my_variable);
}


So my question is: could Ruby GC my_variable while acquiring the GVL?
should I keep it from GC by using rb_gc_register_address(&my_variable)
?

Thanks a lot.




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