Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One heap per type.

Here’s an allocator optimized for that use case.

https://github.com/WebKit/WebKit/blob/main/Source/bmalloc/li...



The ownership works for non pointers. We can have integers (handles) that are owners. This allow custom allocators for instance. The concept of owner is some value that works as reference to an object and manages its lifetime.




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

Search: