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

Unified Diff: src/heap/mark-compact.cc

Issue 1882033002: [heap] Add tracing for age_marks upon evacuation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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: src/heap/mark-compact.cc
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
index e537689c4a5ca4ba35530fc8d81a55f3bfd37596..a6c090765e47f09e69af5ac875d196e554d85f2a 100644
--- a/src/heap/mark-compact.cc
+++ b/src/heap/mark-compact.cc
@@ -2991,10 +2991,17 @@ bool MarkCompactCollector::Evacuator::EvacuateSinglePage(
success = collector_->VisitLiveObjects(p, visitor, kClearMarkbits);
}
if (FLAG_trace_evacuation) {
+ const char age_mark_tag =
+ !p->InNewSpace()
+ ? 'x'
+ : !p->IsFlagSet(MemoryChunk::NEW_SPACE_BELOW_AGE_MARK)
+ ? '>'
+ : !p->ContainsLimit(heap()->new_space()->age_mark()) ? '<'
+ : '#';
PrintIsolate(heap()->isolate(),
- "evacuation[%p]: page=%p new_space=%d executable=%d "
- "live_bytes=%d time=%f\n",
- this, p, p->InNewSpace(),
+ "evacuation[%p]: page=%p new_space=%d age_mark_tag=%c "
+ "executable=%d live_bytes=%d time=%f\n",
+ this, p, p->InNewSpace(), age_mark_tag,
p->IsFlagSet(MemoryChunk::IS_EXECUTABLE), saved_live_bytes,
evacuation_time);
}
« 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