diff options
Diffstat (limited to 'src/runtime/cgo.go')
-rw-r--r-- | src/runtime/cgo.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/runtime/cgo.go b/src/runtime/cgo.go index d90468240d..395303552c 100644 --- a/src/runtime/cgo.go +++ b/src/runtime/cgo.go @@ -17,6 +17,9 @@ import "unsafe" //go:linkname _cgo_callers _cgo_callers //go:linkname _cgo_set_context_function _cgo_set_context_function //go:linkname _cgo_yield _cgo_yield +//go:linkname _cgo_pthread_key_created _cgo_pthread_key_created +//go:linkname _cgo_bindm _cgo_bindm +//go:linkname _cgo_getstackbound _cgo_getstackbound var ( _cgo_init unsafe.Pointer @@ -26,11 +29,17 @@ var ( _cgo_callers unsafe.Pointer _cgo_set_context_function unsafe.Pointer _cgo_yield unsafe.Pointer + _cgo_pthread_key_created unsafe.Pointer + _cgo_bindm unsafe.Pointer + _cgo_getstackbound unsafe.Pointer ) // iscgo is set to true by the runtime/cgo package var iscgo bool +// set_crosscall2 is set by the runtime/cgo package +var set_crosscall2 func() + // cgoHasExtraM is set on startup when an extra M is created for cgo. // The extra M must be created before any C/C++ code calls cgocallback. var cgoHasExtraM bool |