]> Cypherpunks repositories - gostls13.git/commit
syscall: plan9 - mark gbit16 as go:nosplit
authorRichard Miller <miller.research@gmail.com>
Sat, 28 May 2016 09:06:37 +0000 (10:06 +0100)
committerDavid du Colombier <0intro@gmail.com>
Tue, 31 May 2016 04:53:19 +0000 (04:53 +0000)
commit8e6e9e83818596048cfca1e121ad39b9b007ba28
tree07f442f2627129cd90d81de8ed483972749ca324
parentb3f98d7a42d04f6f173cd61ce3fe2106e4877496
syscall: plan9 - mark gbit16 as go:nosplit

This is a correction to CL 22610.  The gbit16 function is called in
StartProcess between fork and exec, and therefore must not split the
stack.  Normally it's inlined so this is not an issue, but on one
occasion I've observed it to be compiled without inlining, and the
result was a panic.  Mark it go:nosplit to be safe.

Change-Id: I0381754397b766431bf406d9767c73598d23b901
Reviewed-on: https://go-review.googlesource.com/23560
Reviewed-by: David du Colombier <0intro@gmail.com>
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/syscall/dir_plan9.go