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

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: Remove residual watched bit. 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 241902791c71b507dd4ac524f52ff55352c1933e..c02c4e74de2be6ad0d52c2bd5a019c6b24fc4d67 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -22414,7 +22414,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;
}

Powered by Google App Engine
This is Rietveld 408576698