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

Unified Diff: runtime/vm/object.cc

Issue 1092473002: Never mark free list elements. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/freelist.h ('k') | runtime/vm/verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 45122)
+++ runtime/vm/object.cc (working copy)
@@ -758,8 +758,9 @@
explicit PremarkingVisitor(Isolate* isolate) : ObjectVisitor(isolate) {}
void VisitObject(RawObject* obj) {
Ivan Posva 2015/04/15 21:57:01 Another question could be: Why are we visiting fre
- // RawInstruction objects are premarked on allocation.
- if (!obj->IsMarked()) {
+ ASSERT(!obj->IsMarked());
+ // Free list elements should never be marked.
+ if (!obj->IsFreeListElement()) {
obj->SetMarkBitUnsynchronized();
}
}
« no previous file with comments | « runtime/vm/freelist.h ('k') | runtime/vm/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698