Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for goStatusToTraceGoStatus (0.36 sec)

  1. src/runtime/tracestatus.go

    	if inSweep {
    		w = w.event(traceEvGCSweepActive, traceArg(pid))
    	}
    	return w
    }
    
    // goStatusToTraceGoStatus translates the internal status to tracGoStatus.
    //
    // status must not be _Gdead or any status whose name has the suffix "_unused."
    func goStatusToTraceGoStatus(status uint32, wr waitReason) traceGoStatus {
    	// N.B. Ignore the _Gscan bit. We don't model it in the tracer.
    	var tgs traceGoStatus
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:03:35 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. src/runtime/tracestack.go

    			// where a running goroutine might be in _Gwaiting, and these cases
    			// are totally fine for taking a stack trace. They're captured
    			// correctly in goStatusToTraceGoStatus.
    			switch goStatusToTraceGoStatus(status, gp.waitreason) {
    			case traceGoRunning, traceGoSyscall:
    				if getg() == gp || mp.curg == gp {
    					break
    				}
    				fallthrough
    			default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. src/runtime/trace.go

    		// traced in gen between when we recorded it and now. If that's true, the goid
    		// and status we recorded then is exactly what we want right now.
    		status := goStatusToTraceGoStatus(ug.status, ug.waitreason)
    		statusWriter = statusWriter.writeGoStatus(ug.goid, ug.mid, status, ug.inMarkAssist, ug.stackID)
    	}
    	statusWriter.flush().end()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top