From 11d1eca9f3c465045828e3a00b103620c8253258 Mon Sep 17 00:00:00 2001 From: Marcel Laverdet Date: Wed, 10 Aug 2011 16:39:03 -0500 Subject: [PATCH] Add explicit v8 locker v8 requires a lock of each thread using the vm, but if none is explicitly is created it will implicitly create one for you. This creates issues when trying to build modules which use v8's multi-threading features because there's no lock to unlock. --- src/node.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node.cc b/src/node.cc index 9ac528a85d7..cb37fef2552 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2633,6 +2633,7 @@ int Start(int argc, char *argv[]) { argv = Init(argc, argv); v8::V8::Initialize(); + v8::Locker locker; v8::HandleScope handle_scope; // Create the one and only Context.