Index: src/heap/slot-set.h |
diff --git a/src/heap/slot-set.h b/src/heap/slot-set.h |
index 2fac50f9c61f4c33b7aa5874277aaef48cfca5ed..0066bf57b6cf2e8196d5bec24c3ba593a1823d71 100644 |
--- a/src/heap/slot-set.h |
+++ b/src/heap/slot-set.h |
@@ -64,6 +64,7 @@ class SlotSet : public Malloced { |
// The slot offsets specify a range of slots at addresses: |
// [page_start_ + start_offset ... page_start_ + end_offset). |
void RemoveRange(int start_offset, int end_offset) { |
+ CHECK_LE(end_offset, 1 << kPageSizeBits); |
DCHECK_LE(start_offset, end_offset); |
int start_bucket, start_cell, start_bit; |
SlotToIndices(start_offset, &start_bucket, &start_cell, &start_bit); |