Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for gStatusStrings (0.17 sec)

  1. src/runtime/tracestack.go

    			case traceGoRunning, traceGoSyscall:
    				if getg() == gp || mp.curg == gp {
    					break
    				}
    				fallthrough
    			default:
    				print("runtime: gp=", unsafe.Pointer(gp), " gp.goid=", gp.goid, " status=", gStatusStrings[status], "\n")
    				throw("attempted to trace stack of a goroutine this thread does not own")
    			}
    		}
    	}
    
    	if gp != nil && mp == nil {
    		// We're getting the backtrace for a G that's not currently executing.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:56 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/runtime/traceback.go

    	isScan := gpstatus&_Gscan != 0
    	gpstatus &^= _Gscan // drop the scan bit
    
    	// Basic string status
    	var status string
    	if 0 <= gpstatus && gpstatus < uint32(len(gStatusStrings)) {
    		status = gStatusStrings[gpstatus]
    	} else {
    		status = "???"
    	}
    
    	// Override.
    	if gpstatus == _Gwaiting && gp.waitreason != waitReasonZero {
    		status = gp.waitreason.String()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top