1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

register the handle_queue address before allocating the handle.

This commit is contained in:
Charles Lowell 2011-06-21 10:30:19 -05:00
parent 6a43f6b13a
commit bdab40ebad

View file

@ -155,8 +155,8 @@ void rr_init_handle() {
rr_define_method(HandleClass, "IsNearDeath", IsNearDeath, 0);
rr_define_method(HandleClass, "IsWeak", IsWeak, 0);
handle_queue = rb_ary_new();
rb_gc_register_address(&handle_queue);
handle_queue = rb_ary_new();
V8::AddGCPrologueCallback(v8_handle_dequeue);
}