Chromium Code Reviews

Unified Diff: src/heap/memory-reducer.cc

Issue 2863943002: [heap] Memory reducer calls GC with kGCCallbackFlagCollectAllExternalMemory flag. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/heap/heap.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/memory-reducer.cc
diff --git a/src/heap/memory-reducer.cc b/src/heap/memory-reducer.cc
index 3645547ef5653fb99466f795858f813248418f3e..46b7b576d2f95aaeb3b54977559f233edadd01e9 100644
--- a/src/heap/memory-reducer.cc
+++ b/src/heap/memory-reducer.cc
@@ -66,7 +66,8 @@ void MemoryReducer::NotifyTimer(const Event& event) {
state_.started_gcs);
}
heap()->StartIdleIncrementalMarking(
- GarbageCollectionReason::kMemoryReducer);
+ GarbageCollectionReason::kMemoryReducer,
+ kGCCallbackFlagCollectAllExternalMemory);
} else if (state_.action == kWait) {
if (!heap()->incremental_marking()->IsStopped() &&
heap()->ShouldOptimizeForMemoryUsage()) {
« no previous file with comments | « src/heap/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine