-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: infinite loop in the inliner #73425
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
Comments
@golang/compiler |
We'll need to create a backport candidate issue for the Go1.24.3 milestone; moving this to Go1.25. |
Tip looked fine (this was GOARCH=amd64 on Darwin). But I checked it at the current tip of go1.24 (which is a hair past 1.24.2) and am currently 5 cpu minutes in on one compile in the build but at a stable 540MB of memory consumption. Dumping stacks from with the Apple profiler indeed suggests something in the inliner. So perhaps we fixed it, but where/how? |
Well that was obvious (in highsight) cmd/compile: remove no-longer-necessary recursive inlining checks. The plan was to split the change into two parts so as to make it easier to backport. Mice, men, etc, oops. |
Change https://go.dev/cl/666555 mentions this issue: |
Just to clarify, are you saying this was a regression in https://go.dev/cl/655155 (also backported in https://go.dev/cl/657075) which is fixed in https://go.dev/cl/655157? |
I didn't test it before https://go.dev/cl/655155 so I'm not sure it is a regression in that CL. It is a regression in one of the 1.24 inliner CLs, for sure. |
@gopherbot, please open a backport issue for 1.24. This is a serious compiler bug and a regression in 1.24. |
Backport issue(s) opened: #73440 (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. |
A sample of the infinite loop it appears to be in:
The text was updated successfully, but these errors were encountered: