Hacker News new | past | comments | ask | show | jobs | submit login

Terrifying to think that tiny, subtle bugs like this could exist in pacemakers and planes. Especially if something like this only happens once every decade or so:

> I guess once in a while it would fail if your allocator happens to land one at the end of a page.




My understanding is that pacemakers and planes (and similarly high-reliability systems) tend to statically assign everything and avoid allocators altogether, for precisely this reason. It's much easier to prove that you don't have memory problems if you simply assign every byte of RAM to a specific task and then make sure it's always used for that task and only that task.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: