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

Unified Diff: runtime/vm/object.cc

Issue 2001713002: - Removed the kWatchedBit and the associated weak property handling (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 60e35500e4ab80adfbce2746a66d2f1e9fb84e4a..1565744deda2faabd72e893da782bda296aa459a 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -22259,7 +22259,9 @@ RawWeakProperty* WeakProperty::New(Heap::Space space) {
RawObject* raw = Object::Allocate(WeakProperty::kClassId,
WeakProperty::InstanceSize(),
space);
- return reinterpret_cast<RawWeakProperty*>(raw);
+ RawWeakProperty* result = reinterpret_cast<RawWeakProperty*>(raw);
+ result->ptr()->next_ = 0; // Init the list to NULL.
+ return result;
}
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/raw_object.h » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698