Chromium Code Reviews| 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
|
| } |
| } |