Reviewers: jochen,

Description:
Pass the kGCCallbacksForced flag when invoking Heap::CollectAllGarbage from
AdjustAmountOfExternalAllocatedMemory.

This forces the second pass of the pending phantom callbacks to run immediately
after the first.

BUG=chromium:511294
LOG=Y

Please review this at https://codereview.chromium.org/1252993004/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+1, -1 lines):
  M src/api.cc


Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 646c070801fee2f66e32487dfd5f80e1f6da583b..74970e88fbb830ce6278553f9b2d3d0215ca9a38 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -6885,7 +6885,7 @@ Local<Integer> v8::Integer::NewFromUnsigned(Isolate* isolate, uint32_t value) {

 void Isolate::CollectAllGarbage(const char* gc_reason) {
   reinterpret_cast<i::Isolate*>(this)->heap()->CollectAllGarbage(
-      i::Heap::kNoGCFlags, gc_reason);
+      i::Heap::kNoGCFlags, gc_reason, v8::kGCCallbackFlagForced);
 }




--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to