Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 7494330263ea37c0ec0eb32fba3f1b3a19ceaff2..3513192c6ecbc40bf275d460f26dc2ee7bb09b2a 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -345,7 +345,7 @@ void MarkCompactCollector::CollectGarbage() { |
// arrays are cleared or contain only live code objects. |
ProcessAndClearWeakCells(); |
- if (FLAG_collect_maps) ClearNonLiveReferences(); |
+ ClearNonLiveReferences(); |
ClearWeakCollections(); |
@@ -369,7 +369,7 @@ void MarkCompactCollector::CollectGarbage() { |
#ifdef VERIFY_HEAP |
VerifyWeakEmbeddedObjectsInCode(); |
- if (FLAG_collect_maps && FLAG_omit_map_checks_for_leaf_maps) { |
+ if (FLAG_omit_map_checks_for_leaf_maps) { |
VerifyOmittedMapChecks(); |
} |
#endif |