Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confirmation of malloc is still necessary or not? #1

Open
wantingchen opened this issue Jul 28, 2016 · 1 comment
Open

Confirmation of malloc is still necessary or not? #1

wantingchen opened this issue Jul 28, 2016 · 1 comment

Comments

@wantingchen
Copy link

If I understand well, malloc never fails due to overcommit in Linux.
http://www.etalabs.net/overcommit.html

@jserv
Copy link
Owner

jserv commented Jul 28, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants