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

On Linux, mmap() is your signal-safe malloc.

POSIX doesn't require mmap() to be async-signal safe, but on Linux it de facto is.

Of course, doing every memory allocation at the kernel level is going to be very slow and resource intensive. But if it isn't on a hot code path...



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

Search: