]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: factor out usesLibcall
authorJoel Sing <joel@sing.id.au>
Sat, 3 Oct 2020 15:44:41 +0000 (01:44 +1000)
committerJoel Sing <joel@sing.id.au>
Tue, 19 Jan 2021 12:48:38 +0000 (12:48 +0000)
commit61debffd977889cd3f7f63b4f71d5a8ef1fc604e
treeda9bd7a21f2aa9e36c14a8b40921810c696bc663
parent9fed39d2814073a9389a614342f603bab9963bff
runtime: factor out usesLibcall

Rather than inline lists of GOOS values, factor out the code that checks
if a runtime makes system calls via libcall.

Change-Id: Ib19d7e63a2b4b8314f1841c0ff26e1b3a16b4b22
Reviewed-on: https://go-review.googlesource.com/c/go/+/259239
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