Ali Mohammad Pur
a72eea6408
AK: Give BumpAllocator a single-block cache
...
This avoid excessive mmap/munmap traffic in normal operation.
2021-09-13 14:38:53 +04:30
Ali Mohammad Pur
0f1425c895
AK: Avoid OOB access in UniformBumpAllocator::destroy_all()
...
Otherwise we would end up calling T::~T() on some random memory right
after our mapped block, which is most likely a pretty bad thing to do :P
2021-08-13 04:42:34 +04:30
Daniel Bertalan
301cab188c
AK: Use explode_byte
in BumpAllocator.h
...
When compiling this code with Clang, both branches of the ternary
operator get evaluated at compile-time, triggering a warning about a
narrowing implicit conversion. We can use `explode_byte` instead.
2021-08-08 10:55:36 +02:00
Timothy Flynn
dae7674ca9
AK: Allow configuring the BumpAllocator chunk size
2021-08-04 11:18:24 +02:00
Ali Mohammad Pur
b034fa9f1f
AK: Add a simple bump allocator
2021-08-02 17:22:50 +04:30