Source file src/runtime/cgo/cgo_nonandroid.go
1 // Copyright 2026 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build goexperiment.runtimecgopurego && !msan && !tsan && unix && !android 6 7 package cgo 8 9 //go:nosplit 10 //go:norace 11 func cgoInitTLS(tlsg, tlsbase uintptr) {} 12 13 // cgoFatal reports a fatal runtime/cgo error and aborts. 14 // msg must end with "\n\x00". 15 // 16 //go:nosplit 17 //go:norace 18 func cgoFatal(msg string) { 19 runtime_writeErrStr(msg[:len(msg)-1]) 20 runtime_abort() 21 } 22