Skip to content

Commit

Permalink
Fixed v8::IdleNotification for nodejs 0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Minetti committed Feb 7, 2015
1 parent 3bc27f8 commit a9e1443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/memwatch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,6 @@ NAN_METHOD(memwatch::upon_gc) {

NAN_METHOD(memwatch::trigger_gc) {
NanScope();
while(!V8::Isolate::GetCurrent()->IdleNotification(0)) {};
while(!V8::Isolate::GetCurrent()->IdleNotification(500)) {};
NanReturnValue(NanUndefined());
}

0 comments on commit a9e1443

Please sign in to comment.