Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for STWStart (0.16 sec)

  1. src/runtime/traceruntime.go

    	// N.B. Only one GC can be running at a time, so this is naturally
    	// serialized by the caller.
    	trace.seqGC++
    }
    
    // STWStart traces a STWBegin event.
    func (tl traceLocker) STWStart(reason stwReason) {
    	// Although the current P may be in _Pgcstop here, we model the P as running during the STW. This deviates from the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  2. src/runtime/trace.go

    	//
    	// N.B. This will also emit a status event for this goroutine.
    	tl := traceAcquire()
    	tl.Gomaxprocs(gomaxprocs)  // Get this as early in the trace as possible. See comment in traceAdvance.
    	tl.STWStart(stwStartTrace) // We didn't trace this above, so trace it now.
    
    	// Record the fact that a GC is active, if applicable.
    	if gcphase == _GCmark || gcphase == _GCmarktermination {
    		tl.GCActive()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  3. 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