Goal for next week

This commit is contained in:
Victor Olin 2023-02-10 13:47:09 +01:00
parent afd5463310
commit f42ea42273
4 changed files with 51 additions and 17 deletions

View file

@ -1,5 +1,14 @@
# Garbage collection
## Project
Goal for next week (17/2):
- Functioning garbage collector
- Test it with valgrind
TODO:
- Merge to main branch
## Algorithm
Potential algorithms:
@ -20,15 +29,9 @@ Potential algorithms:
- Holds all memory
- Resizeable array?
- Singleton instance
- exposes alloc
- Allocator class
- Allocates chunks of memory
- keeps track of chunks that are available and their sizes
- Several instances of allocator class with different sizes?
- HeapObj class
- parent of all heap objects
- contains metadata
- size
- location
- marked bit
- Heap chunks
- size
- addr
- marked bit