[go] cmd/compile: fix ICE with large init function

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Jun 30, 2026, 1:06:54 PM (yesterday) Jun 30
to Cuong Manh Le, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Junyang Shao, golang...@luci-project-accounts.iam.gserviceaccount.com, Keith Randall, Keith Randall, Jorropo, Cherry Mui, golang-co...@googlegroups.com

Gopher Robot submitted the change

Unreviewed changes

3 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Change information

Commit message:
Revert "cmd/compile: speedup large init function compile time"

This reverts CL 737880.

Reason to revert: the CL breaks initialization variables that emits
local variables in synthetic init function.

Fixes #80141
Change-Id: I7d5da53901b47d7000dc7794a157df720c4f8add
Reviewed-by: Keith Randall <k...@google.com>
Reviewed-by: Junyang Shao <shaoj...@google.com>
Reviewed-by: Jorropo <jorro...@gmail.com>
Reviewed-by: Keith Randall <k...@golang.org>
Auto-Submit: Cuong Manh Le <cuong.m...@gmail.com>
Auto-Submit: Junyang Shao <shaoj...@google.com>
Files:
  • M src/cmd/compile/internal/noder/reader.go
  • M src/cmd/compile/internal/pkginit/init.go
  • M src/cmd/compile/internal/staticinit/sched.go
Change size: M
Delta: 3 files changed, 4 insertions(+), 56 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I7d5da53901b47d7000dc7794a157df720c4f8add
Gerrit-Change-Number: 794180
Gerrit-PatchSet: 6
Gerrit-Owner: Cuong Manh Le <cuong.m...@gmail.com>
Gerrit-Reviewer: Cherry Mui <cher...@google.com>
Gerrit-Reviewer: Cuong Manh Le <cuong.m...@gmail.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Jorropo <jorro...@gmail.com>
Gerrit-Reviewer: Junyang Shao <shaoj...@google.com>
Gerrit-Reviewer: Keith Randall <k...@golang.org>
Gerrit-Reviewer: Keith Randall <k...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages