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

Unified Diff: third_party/WebKit/Source/platform/heap/ThreadState.cpp

Issue 1659453002: Oilpan: Move synchronous Oilpan GCs out of V8 GC epilogues (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
Index: third_party/WebKit/Source/platform/heap/ThreadState.cpp
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
index e8672bf1111b4e0078b40fd5993e1a6129d8ad3f..e630d215fa1e7f1a7b6cfe3d644e34d30e279dd8 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
@@ -597,16 +597,8 @@ void ThreadState::scheduleV8FollowupGCIfNeeded(BlinkGC::V8GCType gcType)
ASSERT(!isSweepingInProgress());
ASSERT(!sweepForbidden());
- // TODO(haraken): Consider if we should trigger a memory pressure GC
- // for V8 minor GCs as well.
- if (gcType == BlinkGC::V8MajorGC && shouldForceMemoryPressureGC()) {
-#if PRINT_HEAP_STATS
- dataLogF("Scheduled MemoryPressureGC\n");
-#endif
- Heap::collectGarbage(BlinkGC::HeapPointersOnStack, BlinkGC::GCWithoutSweep, BlinkGC::MemoryPressureGC);
- return;
- }
- if (shouldScheduleV8FollowupGC()) {
+ if ((gcType == BlinkGC::V8MajorGC && shouldForceMemoryPressureGC())
sof 2016/02/01 14:41:48 Won't this regress on some tests that do run into
haraken 2016/02/01 15:05:57 It may regress, but I think it isn't as terrible a
+ || shouldScheduleV8FollowupGC()) {
#if PRINT_HEAP_STATS
dataLogF("Scheduled PreciseGC\n");
#endif

Powered by Google App Engine
This is Rietveld 408576698