MCPcopy Create free account
hub / github.com/bytedance/bolt / ~Block

Method ~Block

bolt/common/memory/tests/FragmentationBenchmark.cpp:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

freeNonContiguousMethod · 0.45
freeContiguousMethod · 0.45

Tested by

no test coverage detected