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

Unified Diff: src/heap/heap.cc

Issue 2442693002: [heap] Account mark-compact prologue and epilogue in GC tracer. (Closed)
Patch Set: Created 4 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 | « src/heap/gc-tracer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index bc501b066e949b933644083f10dc6d49f6a7df85..b2529bd64f4d8091977f6ad7e123c68328be80d1 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -1447,6 +1447,7 @@ void Heap::MarkCompact() {
void Heap::MarkCompactEpilogue() {
+ TRACE_GC(tracer(), GCTracer::Scope::MC_EPILOGUE);
gc_state_ = NOT_IN_GC;
isolate_->counters()->objs_since_last_full()->Set(0);
@@ -1465,6 +1466,7 @@ void Heap::MarkCompactEpilogue() {
void Heap::MarkCompactPrologue() {
+ TRACE_GC(tracer(), GCTracer::Scope::MC_PROLOGUE);
isolate_->context_slot_cache()->Clear();
isolate_->descriptor_lookup_cache()->Clear();
RegExpResultsCache::Clear(string_split_cache());
« no previous file with comments | « src/heap/gc-tracer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698