3 ms·
An implementation certainly could return memory to the OS on calls to free(), but to my knowledge none of the widely used implementations do so. (I would be int
by wtracy 8y ago
An implementation certainly could return memory to the OS on calls to free(), but to my knowledge none of the widely used implementations do so. (I would be interested to learn of counterexamples!)
- cperciva 8y agojemalloc can use madvise(MADV_FREE) to return pages to the OS.