Index: src/extensions/gc-extension.cc |
diff --git a/src/extensions/gc-extension.cc b/src/extensions/gc-extension.cc |
index b8442c1bf85bfe6c4482a2333ec4ec0608fa55f6..51b61602dc0c96b9366b474f9daf8af4fd2356bf 100644 |
--- a/src/extensions/gc-extension.cc |
+++ b/src/extensions/gc-extension.cc |
@@ -42,9 +42,11 @@ v8::Handle<v8::FunctionTemplate> GCExtension::GetNativeFunctionTemplate( |
void GCExtension::GC(const v8::FunctionCallbackInfo<v8::Value>& args) { |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); |
if (args[0]->BooleanValue()) { |
- isolate->heap()->CollectGarbage(NEW_SPACE, "gc extension"); |
+ isolate->heap()->CollectGarbage( |
+ NEW_SPACE, "gc extension", v8::kGCCallbackForced); |
} else { |
- isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, "gc extension"); |
+ isolate->heap()->CollectAllGarbage( |
+ Heap::kNoGCFlags, "gc extension", v8::kGCCallbackForced); |
} |
} |