| 50 | "Size cap: total GB resident at one time"); |
| 51 | DEFINE_bool( |
| 52 | bolt_benchmark_use_mmap, |
| 53 | true, |
| 54 | "Use mmap and madvise to manage fragmentation"); |
| 55 | using namespace bytedance::bolt; |
| 56 | using namespace bytedance::bolt::memory; |
| 57 | |
| 58 | struct Block { |
| 59 | explicit Block(MemoryAllocator& _allocator) : allocator(_allocator) {} |
| 60 | |
| 61 | ~Block() { |
| 62 | if (data != nullptr) { |
| 63 | free(data); |
nothing calls this directly
no test coverage detected