]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: factor out mStackIsSystemAllocated
authorJoel Sing <joel@sing.id.au>
Mon, 24 Aug 2020 08:04:13 +0000 (18:04 +1000)
committerJoel Sing <joel@sing.id.au>
Tue, 19 Jan 2021 12:07:43 +0000 (12:07 +0000)
commit9fed39d2814073a9389a614342f603bab9963bff
tree0f7d8784ae2cf66e3ca98b8b7aae1b34026c14b3
parentdbab07983596c705d2ef12806e0f9d630063e571
runtime: factor out mStackIsSystemAllocated

Rather than repeat long lists of GOOS values, factor out the code that checks
if a runtime starts on a system allocated stack. Note that this adds aix to
one case, which appears to have been previously missed.

Change-Id: I5cecb0bb47dd79cde8d723e5a42ba541e43cbfff
Reviewed-on: https://go-review.googlesource.com/c/go/+/250179
Trust: Joel Sing <joel@sing.id.au>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Go Bot <gobot@golang.org>
src/runtime/proc.go