18 void *synth_base =
reinterpret_cast<void*
>(0x08000000);
19 const size_t synth_size = 1024*1024;
20 Arena b(synth_base, synth_size, 16);
22 std::vector<void*> addr;
24 addr.push_back(
nullptr);
25 uint32_t s = 0x12345678;
28 int idx = s & (addr.size()-1);
32 }
else if(!addr[idx]) {
void * alloc(size_t size)
Allocate size bytes from this arena.
BENCHMARK(BenchLockedPool, 530)
void free(void *ptr)
Free a previously allocated chunk of memory.