Revision: 8917
Author: [email protected]
Date: Fri Aug 12 01:56:49 2011
Log: NewGC: Don't put tagged null pointers in garbage objects when
updating pointers
to dead new space objects. These null pointers can be found later by the
evacuation pointer updater, which will crash.
Review URL: http://codereview.chromium.org/7635014
http://code.google.com/p/v8/source/detail?r=8917
Modified:
/branches/experimental/gc/src/mark-compact.cc
=======================================
--- /branches/experimental/gc/src/mark-compact.cc Wed Aug 10 05:50:30 2011
+++ /branches/experimental/gc/src/mark-compact.cc Fri Aug 12 01:56:49 2011
@@ -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));
}
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev