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

Unified Diff: Source/heap/Heap.cpp

Issue 220203005: Oilpan: introduce sticky forcedForTesting flag to ensure that a precise (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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: Source/heap/Heap.cpp
diff --git a/Source/heap/Heap.cpp b/Source/heap/Heap.cpp
index 88a6e8b80c33a29950e8fc8b1f2d68fcd3092d4e..bfd702bace91671b75961b82fdc7251bc6ee165d 100644
--- a/Source/heap/Heap.cpp
+++ b/Source/heap/Heap.cpp
@@ -1305,6 +1305,8 @@ void Heap::prepareForGC()
void Heap::collectGarbage(ThreadState::StackState stackState, GCType gcType)
{
+ if (gcType == ForcedForTesting && stackState != ThreadState::NoHeapPointersOnStack)
+ ThreadState::current()->setForcedForTesting(true);
ThreadState::current()->clearGCRequested();
GCScope gcScope(stackState);

Powered by Google App Engine
This is Rietveld 408576698