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

Unified Diff: runtime/vm/gc_marker.cc

Issue 2908353002: Nonvirtual pointer visitor in GCs (Closed)
Patch Set: Separated user-defined classes case so it can be inlined Created 3 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
« no previous file with comments | « no previous file | runtime/vm/raw_object.h » ('j') | runtime/vm/raw_object.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/gc_marker.cc
diff --git a/runtime/vm/gc_marker.cc b/runtime/vm/gc_marker.cc
index fd1a1f25b8f5cde5d8e2344770429ba55bac27ac..ef11a9467867e676bc1d7dc75e407f3d6953d8be 100644
--- a/runtime/vm/gc_marker.cc
+++ b/runtime/vm/gc_marker.cc
@@ -192,7 +192,7 @@ class MarkingVisitorBase : public ObjectPointerVisitor {
// The key is marked so we make sure to properly visit all pointers
// originating from this weak property.
VisitingOldObject(cur_weak);
- cur_weak->VisitPointers(this);
+ cur_weak->VisitPointersNonvirtual(this);
} else {
// Requeue this weak property to be handled later.
EnqueueWeakProperty(cur_weak);
@@ -220,7 +220,7 @@ class MarkingVisitorBase : public ObjectPointerVisitor {
VisitingOldObject(raw_obj);
const intptr_t class_id = raw_obj->GetClassId();
if (class_id != kWeakPropertyCid) {
- marked_bytes_ += raw_obj->VisitPointers(this);
+ marked_bytes_ += raw_obj->VisitPointersNonvirtual(this);
} else {
RawWeakProperty* raw_weak =
reinterpret_cast<RawWeakProperty*>(raw_obj);
@@ -272,7 +272,7 @@ class MarkingVisitorBase : public ObjectPointerVisitor {
return raw_weak->Size();
}
// Key is gray or black. Make the weak property black.
- return raw_weak->VisitPointers(this);
+ return raw_weak->VisitPointersNonvirtual(this);
erikcorry 2017/05/31 10:40:42 I don't think this is worth it. Normally there ar
}
// Called when all marking is complete.
« no previous file with comments | « no previous file | runtime/vm/raw_object.h » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698