-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: out of memory #72063
Comments
|
@gopherbot please backport to the next go1.24 release. Valid code that used to compile with 1.23.6 now fails to do so while using all the memory on the system. |
Backport issue(s) opened: #72066 (for 1.23), #72067 (for 1.24). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
Change https://go.dev/cl/654195 mentions this issue: |
Go version
go version go1.24.0 windows/amd64
Output of
go env
in your module/workspace:What did you do?
Running the folling go program via:
Program:
Also available for test at
https://github.com/CarstenLeue/golang-y-combinator
What did you see happen?
The compilation step consumes my complete memory and would not finish but bail out after a couple of minutes with an out ot memory exception. Attached the screenshot of the memory consumption right after starting the program. Memory is consumed by
compile.exe
.What did you expect to see?
When running the same program with
go 1.23.6
I am not seeing no bump in memory consumption at all and the program returns after a couple of seconds with the correct output:I would expect the same for
go 1.24.0
The text was updated successfully, but these errors were encountered: