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
cmd/compile: compiler can fault in low memory conditions #4415
Labels
Milestone
Comments
It would appear that the memory usage has increased slightly of late and that has been enough to result in occasional malloc failures during compilation (the host only has 256MB of RAM and had 512MB of swap - I've since bumped this up). There are several instances where gc does not check the return from malloc, so instead of resulting in an "out of memory" failure, we've ended up faulting. There are also additional unchecked mallocs throughout src/cmd and src/libmach. Labels changed: removed os-openbsd. |
i've audited all commands and libraries besides cmd/gc and cmd/?g. https://golang.org/cl/6856080/ |
rsc
changed the title
cmd/gc: compiler can fault in low memory conditions
cmd/compile: compiler can fault in low memory conditions
Jun 8, 2015
I think this is no longer an issue since cmd/compile was ported to Go. The Go runtime is now responsible for reporting when memory allocation fails. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: