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

Unified Diff: runtime/vm/gc_marker.cc

Issue 10450014: Request for comments on overall approach. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix scavenger and freelist handling Created 8 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
Index: runtime/vm/gc_marker.cc
diff --git a/runtime/vm/gc_marker.cc b/runtime/vm/gc_marker.cc
index 6bdb245a0672d7e4f45da57fa6a17472740dce69..c04163744917c9fe42b846885aee52bade372fd5 100644
--- a/runtime/vm/gc_marker.cc
+++ b/runtime/vm/gc_marker.cc
@@ -139,7 +139,8 @@ class MarkingVisitor : public ObjectPointerVisitor {
// Mark the object and push it on the marking stack.
ASSERT(!raw_obj->IsMarked());
- RawClass* raw_class = raw_obj->ptr()->class_;
+ // TODO(vegorov): consider moving it to a separate helper method.
+ RawClass* raw_class = raw_obj->GetClass();
Ivan Posva 2012/05/26 04:34:46 This does not need to be done early anymore as the
raw_obj->SetMarkBit();
marking_stack_->Push(raw_obj);

Powered by Google App Engine
This is Rietveld 408576698