First of all, malloc implementations that rely on brk are simply broken.
First of all, malloc implementations that rely on brk are simply broken. The whole idea of a process-wide data segment is broken and leads not only to awkwardness around thread safety safety, also the inability to decommit memory when it's no longer needed. Decent malloc implementations use mmap. Second, the whole idea that a page isn't really "allocated" until you touch it is just stupid, lazy, and terrible; it doesn't exist on sane operating systems like NT. On decent systems, mmap (or its equivalent) sets aside committed memory and malloc carves out pieces from that block. It's frustrating to see people who grew up with Linux not only understand how terrible and broken Linux's memory management is, but not realizing that it could be any other way.
Posted by quotemstr on Jan 23, 2015, 6:13 PM
Tags
Related issues
- When ads are inevitably folded into the prompts to the AI, I imagine it'll be fun for a bit to prompt the AI to react with disgust to the...
- My Thoughts on the Current State (Especially Quality Issues) and Future Development of Bun
- This is why I build static astro sites now for marketing and blog type pages.
- os: Setenv leads to SIGSEGV with GODEBUG=netdns=cgo, and other uses of cgo
- [L4D2 - Feature Request] 64-bit Builds of Left 4 Dead 2 (for at least Linux and Windows)
- While I think this is a great piece — especially the part about listening — and it's something we engineers all need to take to heart, I ...
Raise real-world problems, find people facing the same issue, and discuss solutions.8,000 issues0 comments
reliability (Marketing)
When ads are inevitably folded into the prompts to the AI, I imagine it'll be fun for a bit to prompt the AI to react with disgust to the...
My Thoughts on the Current State (Especially Quality Issues) and Future Development of Bun
This is why I build static astro sites now for marketing and blog type pages.
os: Setenv leads to SIGSEGV with GODEBUG=netdns=cgo, and other uses of cgo
[L4D2 - Feature Request] 64-bit Builds of Left 4 Dead 2 (for at least Linux and Windows)
While I think this is a great piece — especially the part about listening — and it's something we engineers all need to take to heart, I ...
It's not a fucking cop out.
I completely understand why people use Adblock - it improves the user experience.
First of all, malloc implementations that rely on brk are simply broken.
First of all, malloc implementations that rely on brk are simply broken. The whole idea of a process-wide data segment is broken and leads not only to awkwardness around thread safety safety, also the inability to decommit memory when it's no longer needed. Decent malloc implementations use mmap. Second, the whole idea that a page isn't really "allocated" until you touch it is just stupid, lazy, and terrible; it doesn't exist on sane operating systems like NT. On decent systems, mmap (or its equivalent) sets aside committed memory and malloc carves out pieces from that block. It's frustrating to see people who grew up with Linux not only understand how terrible and broken Linux's memory management is, but not realizing that it could be any other way.
Comments (0)
No comments yet. Start the discussion.