Reviewers: Michael Starzinger,
Message:
We should have tests for these bugs.
Description:
Reset progress bar of object to 0 when RecordWrites changes object color to
grey.
BUG=
Please review this at https://codereview.chromium.org/11308177/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/incremental-marking-inl.h
Index: src/incremental-marking-inl.h
diff --git a/src/incremental-marking-inl.h b/src/incremental-marking-inl.h
index
1e28e4a06b1cf1cf7ead93c810b17cf2134ebf4f..8c649781f5917619058e6b3a394bc5de9f15c917
100644
--- a/src/incremental-marking-inl.h
+++ b/src/incremental-marking-inl.h
@@ -90,6 +90,10 @@ void IncrementalMarking::RecordWrites(HeapObject* obj) {
if (IsMarking()) {
MarkBit obj_bit = Marking::MarkBitFrom(obj);
if (Marking::IsBlack(obj_bit)) {
+ MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address());
+ if (chunk->IsFlagSet(MemoryChunk::HAS_PROGRESS_BAR)) {
+ chunk->set_progress_bar(0);
+ }
BlackToGreyAndUnshift(obj, obj_bit);
RestartIfNotMarking();
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev