Chaosvex
219769b075
Reorganise allocators & improve tracking ( #297 )
2026-04-21 09:12:29 +01:00
Chaosvex
bfd6e88a1d
Various allocator improvements ( #244 )
...
* Allow the BlockAllocator's size to be specified at runtime
* If huge pages is enabled and requires the allocation size to be rounded up, the additional memory will be used for allocations, even if the requested element count is smaller
2026-03-25 13:03:34 +00:00
Chaosvex
b8dd46864d
Fix a few static analysis warnings
2025-03-19 06:20:08 +00:00
Chaosvex
37d34e0dcd
Rename allocator debug define to be more generic
2025-03-12 23:09:07 +00:00
Chaosvex
2465867e2d
Add assertion to ensure deallocated blocks originated from the same thread
2025-03-03 20:46:36 +00:00
Chaosvex
23d992b45a
Fix failing unit tests
...
Forgot they access the allocator before it's actually initialised since removing the ctor
2025-03-03 19:49:47 +00:00
Chaosvex
6a4c84f159
Allocate TLS when creating instance of TLSBlockAllocator
...
This obviates the need to lazily allocate the memory block within the allocator backend, allowing the conditional to be removed from allocate calls
2025-03-03 17:55:14 +00:00
Chaosvex
b4677d297b
Update GSL to 4.1.0
2025-02-06 16:32:42 +00:00
Chaosvex
d0f7b641ec
Using namespace in unit tests
...
Minor consistency nitpick
2024-12-24 01:15:35 +00:00
Chaosvex
e5105fe57f
Fix 64-bit GCC build
2024-11-11 22:57:20 +00:00
Chaosvex
321b4100f6
Replace auto with size_t where appropriate (until msvc supports 'z' literal)
2024-08-25 17:43:34 +01:00
Chaosvex
e253c54bd3
Reorganise buffers structure/namespacing ( #38 )
2024-07-16 18:48:43 +01:00
Chaosvex
fc527cebbd
Add basic TLSBlockAllocator unit tests
2024-07-10 03:51:19 +01:00