The C runtime is not low-level at all. I'm not sure why anyone would think that?
-
-
The same thing happens when you free. The CRT will just say "thanks" and keep that memory around to give to the next person who calls "malloc", presumably using some heuristic where if there is a lot of freed memory, eventually call the OS unmap call to give some back to the OS.
-
That clears so many things! Thank you very much! I only don't understand why this is not common knowledge... I even feel a little embarrassed.
- Show replies
New conversation -
-
-
The crazy thing about this is that mmap is always seen as something way more high level than malloc. Like you use it do this tricky load file into memory thingy, not just allocate some memory.
-
So weird!
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.