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

Unified Diff: vm/gc_marker.cc

Issue 11038004: - WeakProperty keys in other generations are black. Avoid trying to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 3 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 | vm/object_test.cc » ('j') | vm/object_test.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/gc_marker.cc
===================================================================
--- vm/gc_marker.cc (revision 13085)
+++ vm/gc_marker.cc (working copy)
@@ -368,7 +368,9 @@
MarkingVisitor* visitor) {
// The fate of the weak property is determined by its key.
RawObject* raw_key = raw_weak->ptr()->key_;
- if (!raw_key->IsMarked()) {
+ if (raw_key->IsHeapObject() &&
cshapiro 2012/10/01 22:22:14 Can we use IsUnreachable instead of the explicit c
Ivan Posva 2012/10/01 22:27:39 Different CL.
+ raw_key->IsOldObject() &&
+ !raw_key->IsMarked()) {
// Key is white. Delay the weak property.
visitor->DelayWeakProperty(raw_weak);
} else {
« no previous file with comments | « no previous file | vm/object_test.cc » ('j') | vm/object_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698