Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for STWStart (0.17 sec)

  1. src/runtime/proc.go

    // Returns the STW context. When starting the world, this context must be
    // passed to startTheWorldWithSema.
    func stopTheWorldWithSema(reason stwReason) worldStop {
    	trace := traceAcquire()
    	if trace.ok() {
    		trace.STWStart(reason)
    		traceRelease(trace)
    	}
    	gp := getg()
    
    	// If we hold a lock, then we won't be able to stop another M
    	// that is blocked trying to acquire the lock.
    	if gp.m.locks > 0 {
    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