]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.1] cmd/gc: fix issue with method wrappers not having escape analy...
authorAndrew Gerrand <adg@golang.org>
Mon, 22 Jul 2013 13:45:28 +0000 (23:45 +1000)
committerAndrew Gerrand <adg@golang.org>
Mon, 22 Jul 2013 13:45:28 +0000 (23:45 +1000)
commitb82120bd3e383b02d907b8b78d7b65020c65e702
tree4ce9219478a9e0b1de4d4f5e7f663f5e46cd2395
parentb315b7ffffdf6d553292dc417a1a8913865b7611
[release-branch.go1.1] cmd/gc: fix issue with method wrappers not having escape analysis run on them.

««« CL 10383048 / 58e15340e78f
cmd/gc: fix issue with method wrappers not having escape analysis run on them.

Escape analysis needs the right curfn value on a dclfunc node, otherwise it will not analyze the function.
When generating method value wrappers, we forgot to set the curfn correctly.

Fixes #5753.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/10383048
»»»

Update #5928

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/11669043
src/cmd/gc/closure.c
test/fixedbugs/issue5753.go [new file with mode: 0644]