Index: src/spaces.h |
diff --git a/src/spaces.h b/src/spaces.h |
index 0180f8b5e9442e508a097e22597a39ab253b78d4..954d420dcc59678b09f12b41c898fb6d1bd6bd12 100644 |
--- a/src/spaces.h |
+++ b/src/spaces.h |
@@ -187,7 +187,7 @@ class Bitmap { |
} |
static int SizeFor(int cells_count) { |
- return sizeof(MarkBit::CellType)*cells_count; |
+ return sizeof(MarkBit::CellType) * cells_count; |
} |
INLINE(static uint32_t IndexToCell(uint32_t index)) { |
@@ -1585,7 +1585,8 @@ class PagedSpace : public Space { |
(ratio > ratio_threshold) ? "[fragmented]" : ""); |
} |
- return (ratio > ratio_threshold) || FLAG_always_compact; |
+ return (ratio > ratio_threshold) || |
+ (FLAG_always_compact && sizes[3] != Page::kObjectAreaSize); |
} |
void EvictEvacuationCandidatesFromFreeLists(); |