diff options
author | Ian Lance Taylor <iant@golang.org> | 2016-07-11 16:15:03 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2016-07-12 16:39:00 +0000 |
commit | b30814bbd6840e1574a27c87c37515af22caa5d9 (patch) | |
tree | 0a1a21688d54caffc51fff1fd2924073e6e8a821 /src/runtime/cgocall.go | |
parent | 1f4e68d92b33a668f2afa2ab5f8114c1a4bee682 (diff) | |
download | go-b30814bbd6840e1574a27c87c37515af22caa5d9.tar.gz go-b30814bbd6840e1574a27c87c37515af22caa5d9.zip |
runtime: add ctxt parameter to cgocallback called from Go
The cgocallback function picked up a ctxt parameter in CL 22508.
That CL updated the assembler implementation, but there are a few
mentions in Go code that were not updated. This CL fixes that.
Fixes #16326
Change-Id: I5f68e23565c6a0b11057aff476d13990bff54a66
Reviewed-on: https://go-review.googlesource.com/24848
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
Diffstat (limited to 'src/runtime/cgocall.go')
-rw-r--r-- | src/runtime/cgocall.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/cgocall.go b/src/runtime/cgocall.go index 0f8386b10f..d7e20ebc1d 100644 --- a/src/runtime/cgocall.go +++ b/src/runtime/cgocall.go @@ -44,7 +44,7 @@ // call arbitrary Go code directly and must be careful not to allocate // memory or use up m->g0's stack. // -// _cgoexp_GoF calls runtime.cgocallback(p.GoF, frame, framesize). +// _cgoexp_GoF calls runtime.cgocallback(p.GoF, frame, framesize, ctxt). // (The reason for having _cgoexp_GoF instead of writing a crosscall3 // to make this call directly is that _cgoexp_GoF, because it is compiled // with 6c instead of gcc, can refer to dotted names like |