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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp

Issue 1397763003: Oilpan: Increase GC frequency Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp b/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
index d37514736d20a7124f5cfcb7b788c0bde8bd971d..4e653e953209c86d1b722fd6c2c0359abeb16323 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
@@ -379,6 +379,9 @@ void V8GCController::gcPrologue(v8::GCType type, v8::GCCallbackFlags flags)
if (ThreadState::current())
ThreadState::current()->willStartV8GC();
+ Heap::collectGarbage(ThreadState::HeapPointersOnStack, ThreadState::GCWithSweep, Heap::PageNavigationGC);
+ Heap::collectGarbage(ThreadState::HeapPointersOnStack, ThreadState::GCWithSweep, Heap::PageNavigationGC);
+
if (isMainThread()) {
ScriptForbiddenScope::enter();
}
@@ -421,6 +424,9 @@ void V8GCController::gcPrologue(v8::GCType type, v8::GCCallbackFlags flags)
void V8GCController::gcEpilogue(v8::GCType type, v8::GCCallbackFlags flags)
{
+ Heap::collectGarbage(ThreadState::HeapPointersOnStack, ThreadState::GCWithSweep, Heap::PageNavigationGC);
+ Heap::collectGarbage(ThreadState::HeapPointersOnStack, ThreadState::GCWithSweep, Heap::PageNavigationGC);
+
// TODO(haraken): It would be nice if the GC callbacks passed the Isolate
// directly.
v8::Isolate* isolate = v8::Isolate::GetCurrent();
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698