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

Unified Diff: runtime/vm/gc_marker.cc

Issue 238063011: Modify the Weak Reference Set creation API to make it easier to create (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
Index: runtime/vm/gc_marker.cc
===================================================================
--- runtime/vm/gc_marker.cc (revision 35132)
+++ runtime/vm/gc_marker.cc (working copy)
@@ -374,7 +374,6 @@
visitor->VisitPointer(reference_set->get_value(v));
}
is_unreachable = false;
- delete reference_set;
break;
Ivan Posva 2014/04/17 23:47:44 Please add a comment that this break is breaking o
siva 2014/04/21 18:04:14 Done.
}
}
@@ -392,14 +391,9 @@
break;
}
}
- // Deallocate any unmarked references on the delay queue.
- if (state->delayed_weak_reference_sets() != NULL) {
- WeakReferenceSet* queue = state->delayed_weak_reference_sets();
- state->set_delayed_weak_reference_sets(NULL);
- while (queue != NULL) {
- delete WeakReferenceSet::Pop(&queue);
- }
- }
+ // All weak reference sets are zone allocated and unmarked references on
+ // the delay queue will be freed when the zone is released in the epilog
+ // callback.
}

Powered by Google App Engine
This is Rietveld 408576698