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 2881033002: Revert "Revert of Oilpan: Schedule an idle garbage collection after receiving the kGCCallbackSchedu… (Closed)
Patch Set: Created 3 years, 7 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 | no next file » | 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 ae96a2242215515837680c028d734349ae7d3d09..dfc83aea4dd6a93e6fb9074600c3f6d152a928f1 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp
@@ -441,6 +441,11 @@ void V8GCController::GcEpilogue(v8::Isolate* isolate,
// precise GC to ensure that we collect all available garbage.
current_thread_state->SchedulePreciseGC();
}
+
+ // Schedules a precise GC for the next idle time period.
+ if (flags & v8::kGCCallbackScheduleIdleGarbageCollection) {
+ current_thread_state->ScheduleIdleGC();
+ }
}
TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698