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

Unified Diff: runtime/vm/gc_marker.cc

Issue 1024063003: Eliminate fake-Isolate workaround from concurrent sweeper. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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 | 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 44565)
+++ runtime/vm/gc_marker.cc (working copy)
@@ -230,7 +230,8 @@
return;
}
if (RawObject::IsVariableSizeClassId(raw_obj->GetClassId())) {
- class_table_->UpdateLiveOld(raw_obj->GetClassId(), raw_obj->Size());
+ class_table_->UpdateLiveOld(raw_obj->GetClassId(),
+ raw_obj->Size(class_table_));
} else {
class_table_->UpdateLiveOld(raw_obj->GetClassId(), 0);
}
@@ -425,7 +426,7 @@
marked_bytes_ += raw_obj->VisitPointers(visitor);
} else {
RawWeakProperty* raw_weak = reinterpret_cast<RawWeakProperty*>(raw_obj);
- marked_bytes_ += raw_weak->Size();
+ marked_bytes_ += raw_weak->Size(isolate->class_table());
ProcessWeakProperty(raw_weak, visitor);
}
}
« no previous file with comments | « no previous file | runtime/vm/gc_sweeper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698