From 4d02e77f44faa4184f14ad7dd061646acf745815 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 16 Dec 2011 23:23:34 -0800 Subject: [PATCH] Move prog_start_time init after isolate assigned --- src/node.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node.cc b/src/node.cc index b5331f7a753..a2907391d6b 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2632,9 +2632,6 @@ static Handle DebugPause(const Arguments& args) { char** ProcessInit(int argc, char *argv[]) { - // Initialize prog_start_time to get relative uptime. - uv_uptime(&prog_start_time); - // Hack aroung with the argv pointer. Used for process.title = "blah". argv = uv_setup_args(argc, argv); @@ -2765,6 +2762,9 @@ void StartThread(node::Isolate* isolate, // FIXME crashes with "CHECK(heap->isolate() == Isolate::Current()) failed" //v8_typed_array::AttachBindings(v8::Context::GetCurrent()->Global()); + // Initialize prog_start_time to get relative uptime. + uv_uptime(&prog_start_time); + // Create all the objects, load modules, do everything. // so your next reading stop should be node::Load()! Load(process_l);