diff options
author | Aaron <aaron@10gen.com> | 2011-01-10 22:07:04 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2011-01-10 22:52:21 -0800 |
commit | 8f6aa41ebd9473679ffaa695a10984ba8d37ea85 (patch) | |
tree | 7a04390678874310306fd8391492028502e842d0 /scripting | |
parent | 640852ef604cdfa604a2c5d605419c10ffe479cc (diff) | |
download | mongo-8f6aa41ebd9473679ffaa695a10984ba8d37ea85.tar.gz |
v8 fix gc callback
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/engine_v8.cpp | 2 | ||||
-rw-r--r-- | scripting/v8_utils.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripting/engine_v8.cpp b/scripting/engine_v8.cpp index 82213b78c6c..cd186b41c49 100644 --- a/scripting/engine_v8.cpp +++ b/scripting/engine_v8.cpp @@ -458,7 +458,7 @@ namespace mongo { void V8Scope::gc() { cout << "in gc" << endl; V8Lock l; - while( V8::IdleNotification() ); + while( !V8::IdleNotification() ); } // ----- db access ----- diff --git a/scripting/v8_utils.cpp b/scripting/v8_utils.cpp index b4b06d78aae..171ced501c3 100644 --- a/scripting/v8_utils.cpp +++ b/scripting/v8_utils.cpp @@ -307,7 +307,7 @@ namespace mongo { Handle<v8::Value> GCV8(const Arguments& args) { V8Lock l; - while( V8::IdleNotification() ); + while( !V8::IdleNotification() ); return v8::Undefined(); } |