asg/mem-alloc: Use doubly linked-list and update checker
Add a pointer to prev in struct block_meta and move unmodifiable
files to utils/.
Add memory leak checks and style checks to the checker.
Add make check-fast option to skip checking for memory leaks.
Add instructions for debugging with the VSCode debugger.
Signed-off-by:
Alex Apostolescu <alexx.apostolescu@gmail.com>
Showing
- README.md 66 additions, 69 deletionsREADME.md
- img/coalesce-blocks.svg 0 additions, 0 deletionsimg/coalesce-blocks.svg
- img/memory-block.svg 0 additions, 0 deletionsimg/memory-block.svg
- img/split-block.svg 0 additions, 0 deletionsimg/split-block.svg
- src/.gitignore 0 additions, 0 deletionssrc/.gitignore
- src/Makefile 5 additions, 3 deletionssrc/Makefile
- src/osmem.c 0 additions, 1 deletionsrc/osmem.c
- tests/.gitignore 0 additions, 1 deletiontests/.gitignore
- tests/Makefile 25 additions, 22 deletionstests/Makefile
- tests/checker.py 0 additions, 320 deletionstests/checker.py
- tests/ref/test-all.ref 270 additions, 270 deletionstests/ref/test-all.ref
- tests/ref/test-calloc-arrays.ref 141 additions, 141 deletionstests/ref/test-calloc-arrays.ref
- tests/ref/test-calloc-block-reuse.ref 78 additions, 78 deletionstests/ref/test-calloc-block-reuse.ref
- tests/ref/test-calloc-coalesce-big.ref 20 additions, 20 deletionstests/ref/test-calloc-coalesce-big.ref
- tests/ref/test-calloc-coalesce.ref 32 additions, 32 deletionstests/ref/test-calloc-coalesce.ref
- tests/ref/test-calloc-expand-block.ref 34 additions, 34 deletionstests/ref/test-calloc-expand-block.ref
- tests/ref/test-calloc-no-preallocate.ref 8 additions, 8 deletionstests/ref/test-calloc-no-preallocate.ref
- tests/ref/test-calloc-no-split.ref 172 additions, 140 deletionstests/ref/test-calloc-no-split.ref
- tests/ref/test-calloc-preallocate.ref 2 additions, 2 deletionstests/ref/test-calloc-preallocate.ref
- tests/ref/test-calloc-split-first.ref 32 additions, 32 deletionstests/ref/test-calloc-split-first.ref
Loading
Please register or sign in to comment