summaryrefslogtreecommitdiffstats
path: root/tests/alloc.c
Commit message (Collapse)AuthorAgeFilesLines
* sanity: Don't mark memory uninit in sanitize_{alloc,free}()Tavian Barnes12 days1-10/+34
| | | | | We might want to change the size of an allocated region without changing which bytes are initialized.
* alloc: Stop supporting pathological flexible array ABIsTavian Barnes12 days1-4/+0
|
* alloc: Don't require size % align == 0Tavian Barnes12 days1-0/+8
| | | | | | | | | Allowing unaligned sizes will allow us to allocate aligned slabs with additional metadata in the tail without ballooning the allocation size for large alignments. Link: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2244.htm#dr_460 Link: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2072.htm
* build: Move feature test macros to prelude.hTavian Barnes2024-08-281-1/+0
| | | | | | This replaces the explicit CPPFLAGS list in flags.mk with just `-include src/prelude.h`, shortening our compiler command lines and allowing them to be easily documented.
* prelude: Split bfs-specific utilities into new bfs.h headerTavian Barnes2024-08-281-0/+2
|
* tests: Simplify unit tests with a global variableTavian Barnes2024-07-071-13/+10
| | | | | It's a little awkward to thread the test result through manually; much easier to just make bfs_check() update a global variable.
* Rename config.h to prelude.hTavian Barnes2024-04-191-1/+1
|
* tests: Add ../src to the include pathTavian Barnes2024-04-191-3/+3
|
* Re-run include-what-you-useTavian Barnes2024-03-111-0/+1
|
* tests: New bfs_check() macroTavian Barnes2024-02-291-10/+12
| | | | | We now report failures and continue, rather than aborting after the first failure.
* tests: Merge unit test executables into oneTavian Barnes2024-01-121-3/+3
|
* config: Add (de)allocator attributesTavian Barnes2023-11-091-0/+4
|
* diag: Move enum debug_flags out of ctx.hTavian Barnes2023-10-121-0/+1
|
* alloc: Test allocation size overflowsTavian Barnes2023-10-061-2/+10
|
* alloc: Implement an arena for flexible structsTavian Barnes2023-06-201-1/+13
|
* alloc: New header for memory allocation utilitiesTavian Barnes2023-06-201-0/+24