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

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

Issue 2774473003: Simplify pre+post GC ThreadState steps. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7821c47460851bc5fc5f97655589dd892f877750..7e4272e495e97a896bdecf9355bebbe5cecce3fb 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
@@ -1468,7 +1468,7 @@ void ThreadState::collectGarbage(BlinkGC::StackState stackState,
NoAllocationScope noAllocationScope(this);
heap().commitCallbackStacks();
- heap().preGC();
+ preGC();
StackFrameDepthScope stackDepthScope(&heap().stackFrameDepth());
@@ -1534,10 +1534,10 @@ void ThreadState::collectGarbage(BlinkGC::StackState stackState,
ThreadHeap::reportMemoryUsageHistogram();
WTF::Partitions::reportMemoryUsageHistogram();
}
- heap().postGC(gcType);
+ postGC(gcType);
}
- heap().preSweep(gcType);
+ preSweep(gcType);
heap().decommitCallbackStacks();
}
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698