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

Unified Diff: src/heap-inl.h

Issue 6542047: Basic implementation of incremental marking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 years, 10 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
Index: src/heap-inl.h
diff --git a/src/heap-inl.h b/src/heap-inl.h
index 83e9efad3eaad5c72f0bb9e1f28b7ff265b498db..f9f940b6dbfb100fc83eefe90072c938f0ff2e54 100644
--- a/src/heap-inl.h
+++ b/src/heap-inl.h
@@ -283,8 +283,8 @@ void Heap::RecordWrite(Address address, int offset) {
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++) {
Erik Corry 2011/02/22 12:27:19 I'm an idiot!
+ StoreBuffer::Mark(address + start + i*kPointerSize);
Erik Corry 2011/02/22 12:27:19 Spaces around *
}
}
}

Powered by Google App Engine
This is Rietveld 408576698