Fix assert in simple_heap.

Also add comments to clarify pointer info constraints.

Change-Id: I8d07831a0e953d667c84c96fe53ed07c18ba115c
This commit is contained in:
Sean Keely
2017-09-20 15:22:34 -05:00
parent fcaecfee80
commit 476c8e36bf
3 changed files with 11 additions and 3 deletions
@@ -239,6 +239,7 @@ template <typename Allocator> class SimpleHeap {
for (const auto& block : block_cache_)
block_allocator_.free(reinterpret_cast<void*>(block.base_ptr_), block.length_);
block_cache_.clear();
cache_size_ = 0;
}
size_t max_alloc() const { return block_allocator_.block_size(); }