Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
cmd/compile: DUFFZERO in autogenerated methods corrupts LR #12108
Comments
|
Reducing the size of |
|
Here is a shorter example
|
|
It's duffzero
For some reason, when duffzero is required, it's being invoked twice. |
|
Sorry. I think I was wrong about DUFFZERO. After looking at arm64 and amd64 output, this appears to be consistent, all archs' have this double duffzero pattern. However when duffzero is not present, no corruption appears. |
|
I see a problem in that: the tail call to the underlying method assumes that lr still points to the caller of the wrapper method, but the bl to duffzero stomps on that. |
ianlancetaylor
added this to the Go1.6 milestone
Aug 11, 2015
davecheney
changed the title from
cmd/compile:
to
cmd/compile: DUFFZERO in autogenerated method corrupts LR
Aug 11, 2015
davecheney
changed the title from
cmd/compile: DUFFZERO in autogenerated method corrupts LR
to
cmd/compile: DUFFZERO in autogenerated methods corrupts LR
Aug 11, 2015
gopherbot
commented
Aug 11, 2015
|
CL https://golang.org/cl/13570 mentions this issue. |
added a commit
that referenced
this issue
Aug 12, 2015
pushed a commit
to mwhudson/go
that referenced
this issue
Sep 2, 2015
gopherbot
commented
Oct 6, 2015
|
CL https://golang.org/cl/14937 mentions this issue. |
gopherbot
closed this
in
710b9ad
Oct 6, 2015
gopherbot
locked and limited conversation to collaborators
Oct 9, 2016
gopherbot
added
the
FrozenDueToAge
label
Oct 9, 2016
gopherbot
commented
Oct 27, 2016
|
CL https://golang.org/cl/32181 mentions this issue. |
davecheney commentedAug 11, 2015
The following program faults on ppc64le
http://play.golang.org/p/hRlQs7hss2
The program does not fault on any other architecture.
/cc @rsc @aclements @minux