]> Cypherpunks repositories - gostls13.git/commit
runtime: fix stack pointer corruption in runtime.cgocallback_gofunc()
authorShenghou Ma <minux.ma@gmail.com>
Mon, 29 Apr 2013 20:13:32 +0000 (04:13 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Mon, 29 Apr 2013 20:13:32 +0000 (04:13 +0800)
commit5b78cee3764ea71722a56dc2e1b33ae7e90e5427
tree78af54ebd96b972a861ba901bcc8918623d2429d
parent806dea82d4668c079856b77b3824143500405d25
runtime: fix stack pointer corruption in runtime.cgocallback_gofunc()
runtime.setmg() calls another function (cgo_save_gm), so it must save
LR onto stack.
Re-enabled TestCthread test in misc/cgo/test.

Fixes #4863.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/9019043
misc/cgo/test/cthread.go
src/pkg/runtime/asm_arm.s