diff options
Diffstat (limited to 'src/runtime/proc.go')
| -rw-r--r-- | src/runtime/proc.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 7e177c72cd..56971c7dbe 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -8153,24 +8153,3 @@ func doInit1(t *initTask) { t.state = 2 // initialization done } } - -// libInit is common startup code for most architectures when -// using -buildmode=c-archive or -buildmode=c-shared. -// -// May run with m.p==nil, so write barriers are not allowed. -// -//go:nowritebarrierrec -//go:nosplit -func libInit() { - // Synchronous initialization. - libpreinit() - - // Asynchronous initialization. - // Prefer creating a thread via cgo if it is available. - if _cgo_sys_thread_create != nil { - asmcgocall(_cgo_sys_thread_create, unsafe.Pointer(abi.FuncPCABIInternal(rt0_lib_go))) - } else { - const stackSize = 0x800000 // 8192KB - newosproc0(stackSize, unsafe.Pointer(abi.FuncPCABIInternal(rt0_lib_go))) - } -} |
