Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 4b0ec63629a98b573c4a12b01fea2558dcdf641e..560dc34b3004860c59c24f2c60e10c0bef7ce342 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6866,9 +6866,9 @@ |
} |
-void Isolate::CollectGarbage(const char* gc_reason) { |
- reinterpret_cast<i::Isolate*>(this)->heap()->CollectGarbage(i::NEW_SPACE, |
- gc_reason); |
+void Isolate::CollectAllGarbage(const char* gc_reason) { |
+ reinterpret_cast<i::Isolate*>(this)->heap()->CollectAllGarbage( |
+ i::Heap::kNoGCFlags, gc_reason); |
} |