Index: src/extensions/gc-extension.cc |
=================================================================== |
--- src/extensions/gc-extension.cc (revision 10035) |
+++ src/extensions/gc-extension.cc (working copy) |
@@ -46,8 +46,9 @@ |
void GCExtension::Register() { |
- static GCExtension gc_extension; |
- static v8::DeclareExtension gc_extension_declaration(&gc_extension); |
+ static GCExtension* gc_extension = NULL; |
+ if (gc_extension == NULL) gc_extension = new GCExtension(); |
+ static v8::DeclareExtension gc_extension_declaration(gc_extension); |
} |
} } // namespace v8::internal |