| Index: src/spaces-inl.h
|
| diff --git a/src/spaces-inl.h b/src/spaces-inl.h
|
| index aaca9e45caa49617ac9d35adf7e6f5f8df17bb81..1d314ed9283475c1e8e1b21d91a7645b94e0a229 100644
|
| --- a/src/spaces-inl.h
|
| +++ b/src/spaces-inl.h
|
| @@ -114,12 +114,12 @@ Address Page::CachedAllocationWatermark() {
|
|
|
|
|
| uint32_t Page::GetRegionMarks() {
|
| - return dirty_regions_;
|
| + return FLAG_new_gc ? kAllRegionsDirtyMarks : dirty_regions_;
|
| }
|
|
|
|
|
| void Page::SetRegionMarks(uint32_t marks) {
|
| - dirty_regions_ = marks;
|
| + if (!FLAG_new_gc) dirty_regions_ = marks;
|
| }
|
|
|
|
|
|
|