Revision: 6868 Author: [email protected] Date: Mon Feb 21 05:55:34 2011 Log: Fix bug in Heap::RecordWrites.
Review URL: http://codereview.chromium.org/6548007 http://code.google.com/p/v8/source/detail?r=6868 Modified: /branches/experimental/gc/src/heap-inl.h ======================================= --- /branches/experimental/gc/src/heap-inl.h Wed Feb 16 10:02:22 2011 +++ /branches/experimental/gc/src/heap-inl.h Mon Feb 21 05:55:34 2011 @@ -283,8 +283,8 @@ void Heap::RecordWrites(Address address, int start, int len) { if (!InNewSpace(address)) { - for (int i = 0; i < len; i += kPointerSize) { - StoreBuffer::Mark(address + start + i); + for (int i = 0; i < len; i++) { + StoreBuffer::Mark(address + start + i * kPointerSize); } } } -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
