2 ms·
This is very interesting. Thank you for submitting. I recently took the source code of the GC on https://maplant.com/gc.html https://maplant.com/gc.html And
by samsquire 4y ago
This is very interesting. Thank you for submitting.
I recently took the source code of the GC on
https://maplant.com/gc.html https://maplant.com/gc.html
And updated it to work with amd64 and added primitive register scanning.
The code might be helpful to someone learning
https://GitHub.com/samsquire/garbage-collector https://GitHub.com/samsquire/garbage-collector
One of my ideas is to see if we can do memory management by the absence of a keyword rather than the presence of a keyword.
So whenever you need to use a pointer, you import it. Whenever a scope is entered that doesn't import the keyword, it is freed. this is slightly different to RAII.
- classified 4y agoIt seems like you copied a bug where `MIN_ALLOC_SIZE` is used as a maximum, not a minimum.