hungry-birds
hungry-birds copied to clipboard
Confirmation of malloc is still necessary or not?
If I understand well, malloc never fails due to overcommit in Linux. http://www.etalabs.net/overcommit.html
It depends on OOM killer and virtual memory behavior of Linux kernel. Instead of checking the result value of malloc, I would like to introduce an efficient way to validate each allocated memory chunk by checking the magic number.