Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for recordUnlock (0.12 sec)

  1. src/runtime/mprof.go

    	prof.pending = uintptr(unsafe.Pointer(l))
    	prof.cycles = cycles
    }
    
    // From unlock2, we might not be holding a p in this code.
    //
    //go:nowritebarrierrec
    func (prof *mLockProfile) recordUnlock(l *mutex) {
    	if uintptr(unsafe.Pointer(l)) == prof.pending {
    		prof.captureStack()
    	}
    	if gp := getg(); gp.m.locks == 1 && gp.m.mLockProfile.cycles != 0 {
    		prof.store()
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top