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

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

Issue 1161903004: Oilpan: Don't call didV8GC in V8's minor GC (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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: Source/bindings/core/v8/V8GCController.cpp
diff --git a/Source/bindings/core/v8/V8GCController.cpp b/Source/bindings/core/v8/V8GCController.cpp
index 319ad119fa568605c2e28c5d83e681195490c39a..6573ce25ab4ed4fb4e0b399c12df90fa3253ea32 100644
--- a/Source/bindings/core/v8/V8GCController.cpp
+++ b/Source/bindings/core/v8/V8GCController.cpp
@@ -384,11 +384,12 @@ void V8GCController::gcEpilogue(v8::GCType type, v8::GCCallbackFlags flags)
{
// FIXME: It would be nice if the GC callbacks passed the Isolate directly....
v8::Isolate* isolate = v8::Isolate::GetCurrent();
- if (type == v8::kGCTypeScavenge)
+ if (type == v8::kGCTypeScavenge) {
minorGCEpilogue(isolate);
- else if (type == v8::kGCTypeMarkSweepCompact)
+ } else if (type == v8::kGCTypeMarkSweepCompact) {
majorGCEpilogue(isolate);
- ThreadState::current()->didV8GC();
+ ThreadState::current()->didV8GC();
+ }
// Forces a Blink heap garbage collection when a garbage collection
// was forced from V8. This is used for tests that force GCs from
« 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