size_t BlockSize() const override { return kBlockSize; }
bool IsInInlineBlock() const {
- return blocks_.empty();
+ return blocks_.empty() && huge_blocks_.empty();
}
private:
// Number of bytes allocated in one block
const size_t kBlockSize;
// Array of new[] allocated memory blocks
- typedef std::vector<char*> Blocks;
+ using Blocks = std::vector<char*>;
Blocks blocks_;
struct MmapInfo {