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

Unified Diff: src/mark-compact.cc

Issue 7635014: NewGC: Don't put tagged null pointers in garbage objects when updating pointers (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mark-compact.cc
===================================================================
--- src/mark-compact.cc (revision 8902)
+++ src/mark-compact.cc (working copy)
@@ -2378,7 +2378,7 @@
// We have to zap this pointer, because the store buffer may overflow later,
// and then we have to scan the entire heap and we don't want to find
// spurious newspace pointers in the old space.
- *p = HeapObject::FromAddress(NULL); // Fake heap object not in new space.
+ *p = reinterpret_cast<HeapObject*>(Smi::FromInt(0));
Lasse Reichstein 2011/08/12 08:47:13 So we are not assuming that the value is HeapObjec
Erik Corry 2011/08/12 08:56:40 This is the value in the slot that used to point t
Lasse Reichstein 2011/08/12 09:21:48 Ah, so *p is always in the heap, and not in a stor
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698