diff options
| author | Austin Clements <austin@google.com> | 2017-03-23 11:20:17 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2017-03-27 14:53:12 +0000 |
| commit | 4234d1decd853b2373c17340eb4c0033c0fe9566 (patch) | |
| tree | 34f3dcadd01e05bf81d3619beb36c76857ee9168 /src/runtime/stack.go | |
| parent | 0476c7a7b50614f98f37a51ee2100af922288b68 (diff) | |
| download | go-4234d1decd853b2373c17340eb4c0033c0fe9566.tar.xz | |
runtime: improve systemstack-on-Go stack message
We reused the old C stack check mechanism for the implementation of
//go:systemstack, so when we execute a //go:systemstack function on a
user stack, the system fails by calling morestackc. However,
morestackc's message still talks about "executing C code".
Fix morestackc's message to reflect its modern usage.
Change-Id: I7e70e7980eab761c0520f675d3ce89486496030f
Reviewed-on: https://go-review.googlesource.com/38572
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/stack.go')
| -rw-r--r-- | src/runtime/stack.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/stack.go b/src/runtime/stack.go index 92b8a2b921..830316b69a 100644 --- a/src/runtime/stack.go +++ b/src/runtime/stack.go @@ -1188,6 +1188,6 @@ func freeStackSpans() { //go:nosplit func morestackc() { systemstack(func() { - throw("attempt to execute C code on Go stack") + throw("attempt to execute system stack code on user stack") }) } |
