Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1020)

Unified Diff: src/heap/heap.cc

Issue 2233683002: Add kGCCallbackFlagCollectAllExternalMemory for external memory limit triggered gc (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: added cast Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 3a60e0051cbbe4a02db9eb134b84fe9d0d63b25d..7eb5af3b6a4a408f20d40e5ede782643407acb24 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -907,7 +907,10 @@ void Heap::ReportExternalMemoryPressure(const char* gc_reason) {
if (incremental_marking()->CanBeActivated()) {
StartIncrementalMarking(
i::Heap::kNoGCFlags,
- kGCCallbackFlagSynchronousPhantomCallbackProcessing, gc_reason);
+ static_cast<GCCallbackFlags>(
+ kGCCallbackFlagSynchronousPhantomCallbackProcessing |
+ kGCCallbackFlagCollectAllExternalMemory),
+ gc_reason);
} else {
CollectAllGarbage(i::Heap::kNoGCFlags, gc_reason,
kGCCallbackFlagSynchronousPhantomCallbackProcessing);
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698