Unofficial Hacker News companion — get notified on comment replies, and more.

Doug Lea's Malloc (opens external site)

52 points by grep_it 6 days ago | gee.cs.oswego.edu | 32 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. Unfortunately, ancient Unix tradition makes everything gravitate towards a global heap. You can do something different, but you're fighting the system when you do. There should be a Windows-style multi-heap allocator API, for example, but there isn't. Instead, making a new heap is something every random heap implementation has its own API. Common practice is for one component to free() memory allocated by another too, sadly.