Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for cgoHasExtraM (0.21 sec)

  1. src/runtime/cgo.go

    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname set_crosscall2
    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
    
    // cgoUse is called by cgo-generated code (using go:linkname to get at
    // an unexported name). The calls serve two purposes:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/runtime/signal_unix.go

    }
    
    // This runs on a foreign stack, without an m or a g. No stack split.
    //
    //go:nosplit
    //go:norace
    //go:nowritebarrierrec
    func badsignal(sig uintptr, c *sigctxt) {
    	if !iscgo && !cgoHasExtraM {
    		// There is no extra M. needm will not be able to grab
    		// an M. Instead of hanging, just crash.
    		// Cannot call split-stack function as there is no G.
    		writeErrStr("fatal: bad g in signal handler\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  3. src/runtime/proc.go

    	// An extra M is also needed on Windows for callbacks created by
    	// syscall.NewCallback. See issue #6751 for details.
    	if (iscgo || GOOS == "windows") && !cgoHasExtraM {
    		cgoHasExtraM = true
    		newextram()
    	}
    	initsig(false)
    }
    
    // mPark causes a thread to park itself, returning once woken.
    //
    //go:nosplit
    func mPark() {
    	gp := getg()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top