Index: src/zone/accounting-allocator.cc |
diff --git a/src/zone/accounting-allocator.cc b/src/zone/accounting-allocator.cc |
index 60f8fc02fdb75755503cc3f84d8a0175c221bdc1..587e09d585e6e0e445dc7c5a7f26e4b4d03d9829 100644 |
--- a/src/zone/accounting-allocator.cc |
+++ b/src/zone/accounting-allocator.cc |
@@ -59,7 +59,8 @@ void AccountingAllocator::ConfigureSegmentPool(const size_t max_pool_size) { |
size_t total_size = fits_fully * full_size; |
for (size_t power = 0; power < kNumberBuckets; ++power) { |
- if (total_size + (size_t(1) << power) <= max_pool_size) { |
+ if (total_size + (size_t(1) << (power + kMinSegmentSizePower)) <= |
+ max_pool_size) { |
unused_segments_max_sizes_[power] = fits_fully + 1; |
total_size += size_t(1) << power; |
} else { |