[go] cmd/compile: fix internal compiler error: bad write barrier type

0 views
Skip to first unread message

Gopher Robot (Gerrit)

unread,
Feb 27, 2026, 11:20:26 PM (18 hours ago) Feb 27
to Francisco Ferraz, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, David Chase, Go LUCI, Keith Randall, Keith Randall, Mateusz Poliwczak, golang-co...@googlegroups.com

Gopher Robot submitted the change

Change information

Commit message:
cmd/compile: fix internal compiler error: bad write barrier type

This change fixes an issue where the compiler panics with 'bad
write barrier type' for zero-sized arrays. The loops in
storeTypeScalars and storeTypePtrs erroneously processed
zero-sized arrays causing invalid operations. This ignores them.

Fixes #77815
Change-Id: I0db1b924fc63a75f1bed7488e2dc54d2de5dc0b2
Reviewed-by: Keith Randall <k...@google.com>
Auto-Submit: Keith Randall <k...@golang.org>
Reviewed-by: David Chase <drc...@google.com>
Reviewed-by: Keith Randall <k...@golang.org>
Files:
  • M src/cmd/compile/internal/ssagen/ssa.go
  • A test/fixedbugs/issue77815.go
Change size: S
Delta: 2 files changed, 22 insertions(+), 2 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by David Chase, +1 by Keith Randall, +2 by Keith Randall
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
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: I0db1b924fc63a75f1bed7488e2dc54d2de5dc0b2
Gerrit-Change-Number: 749380
Gerrit-PatchSet: 5
Gerrit-Owner: Francisco Ferraz <francisc...@gmail.com>
Gerrit-Reviewer: David Chase <drc...@google.com>
Gerrit-Reviewer: Gopher Robot <go...@golang.org>
Gerrit-Reviewer: Keith Randall <k...@golang.org>
Gerrit-Reviewer: Keith Randall <k...@google.com>
Gerrit-CC: Mateusz Poliwczak <mpoliw...@gmail.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages