Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CompareAndSwapNoWB (0.13 sec)

  1. src/runtime/proc.go

    //
    // Nosplit as it is called in a bad stack condition (we know
    // morestack would fail).
    //
    //go:nosplit
    //go:nowritebarrierrec
    func switchToCrashStack(fn func()) {
    	me := getg()
    	if crashingG.CompareAndSwapNoWB(nil, me) {
    		switchToCrashStack0(fn) // should never return
    		abort()
    	}
    	if crashingG.Load() == me {
    		// recursive crashing. too bad.
    		writeErrStr("fatal: recursive switchToCrashStack\n")
    		abort()
    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