Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 4526d1220571439a11f957a554d8b0b6c9d14c0d..b90ecf0698a53bbc8fe348064a1b23793e018b3a 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -485,7 +485,7 @@ void MarkCompactCollector::Prepare(GCTracer* tracer) { |
#endif |
// TODO(1726) Revert this into an assertion when compaction is enabled. |
- if (FLAG_never_compact) FLAG_always_compact = false; |
+ ASSERT(!FLAG_never_compact || !FLAG_always_compact); |
if (collect_maps_) CreateBackPointers(); |
#ifdef ENABLE_GDB_JIT_INTERFACE |