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 |