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:
parent
6a43f6b13a
commit
bdab40ebad
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue