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

Commit

Permalink
Move prog_start_time init after isolate assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Dec 17, 2011
1 parent e395515 commit c04f0f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node.cc
Expand Up @@ -2624,9 +2624,6 @@ static Handle<Value> DebugProcess(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);

Expand Down Expand Up @@ -2757,6 +2754,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);
Expand Down

0 comments on commit c04f0f9

Please sign in to comment.