Indicate that low-memory-notificatin triggered GCs are "forced"
authorjochen <jochen@chromium.org>
Mon, 20 Apr 2015 10:23:57 +0000 (03:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 20 Apr 2015 10:23:42 +0000 (10:23 +0000)
BUG=none
R=hpayer@chromium.org
LOG=y

Review URL: https://codereview.chromium.org/1095043002

Cr-Commit-Position: refs/heads/master@{#27934}

src/heap/heap.cc

index c918c6793c6a2203bafc713e51fadd5bf055e5b6..50a328a714411a43f110b48f369deb9d11d71d0f 100644 (file)
@@ -797,7 +797,8 @@ void Heap::CollectAllAvailableGarbage(const char* gc_reason) {
   const int kMaxNumberOfAttempts = 7;
   const int kMinNumberOfAttempts = 2;
   for (int attempt = 0; attempt < kMaxNumberOfAttempts; attempt++) {
-    if (!CollectGarbage(MARK_COMPACTOR, gc_reason, NULL) &&
+    if (!CollectGarbage(MARK_COMPACTOR, gc_reason, NULL,
+                        v8::kGCCallbackFlagForced) &&
         attempt + 1 >= kMinNumberOfAttempts) {
       break;
     }