3 ms·
This is really ambitious, and fascinating for someone who (like me) has really never done anything serious in an environment that wasn't garbage collected. It b
by javajosh 14y ago
This is really ambitious, and fascinating for someone who (like me) has really never done anything serious in an environment that wasn't garbage collected. It brings up a fundamental question: what does it mean to release memory? How long does it take to release memory?
I assume that it involves sending some sort of signal to the surrounding environment. Either that or your program gets two "special" values that it uses to tag memory regions, and the OS periodically truncates (or adds to) your image when those tags reach certain thresholds.
If it's explicit, and a C function call that takes something like a memory address range as an argument what does the kernel do at that point?