Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
register the handle_queue address before allocating the handle.
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboyd committed Jun 21, 2011
1 parent 6a43f6b commit bdab40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/v8/v8_handle.cpp
Expand Up @@ -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);
}

Expand Down

0 comments on commit bdab40e

Please sign in to comment.