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

Unified Diff: runtime/vm/gc_marker.cc

Issue 253493002: - Account for live size in marker. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « runtime/vm/gc_marker.h ('k') | runtime/vm/gc_sweeper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/gc_marker.cc
===================================================================
--- runtime/vm/gc_marker.cc (revision 35390)
+++ runtime/vm/gc_marker.cc (working copy)
@@ -418,9 +418,10 @@
RawObject* raw_obj = visitor->marking_stack()->Pop();
visitor->VisitingOldObject(raw_obj);
if (raw_obj->GetClassId() != kWeakPropertyCid) {
- raw_obj->VisitPointers(visitor);
+ marked_bytes_ += raw_obj->VisitPointers(visitor);
} else {
RawWeakProperty* raw_weak = reinterpret_cast<RawWeakProperty*>(raw_obj);
+ marked_bytes_ += raw_weak->Size();
ProcessWeakProperty(raw_weak, visitor);
}
}
« no previous file with comments | « runtime/vm/gc_marker.h ('k') | runtime/vm/gc_sweeper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698