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

Unified Diff: runtime/vm/object.cc

Issue 10538022: Do not reuse tags_ field to store next_ pointer of FreeListElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Allocate a real class for a free list element. Created 8 years, 6 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 2d2d5f14e2214847322f512b197fb1bda161cc22..990f9114d877726e7f80d1f87ca4a05e49826114 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -299,6 +299,10 @@ void Object::InitOnce() {
cls.set_is_finalized();
null_class_ = cls.raw();
+ // Allocate and initialize the free list element class.
+ cls = Class::New<FreeListElement::FakeInstance>(kFreeListElement);
+ cls.set_is_finalized();
+
// Allocate and initialize the sentinel values of Null class.
{
cls = null_class_;

Powered by Google App Engine
This is Rietveld 408576698