3 ms·
I downvoted for the assumption that sbrk is involved in any way. It's an implementation detail of (some) historical malloc implementations, not some inherent a
by loeg 4y ago
I downvoted for the assumption that sbrk is involved in any way. It's an implementation detail of (some) historical malloc implementations, not some inherent aspect of all implementations. The entire thought experiment is faulty.
- tmtvl 4y agoRight, malloc uses mmap instead of sbrk, I'm an idiot. I really ought to read up on up-to-date implementation practices.