Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for GoUndetermined (0.16 sec)

  1. src/cmd/trace/goroutinegen.go

    	// Handle syscalls.
    	if to == trace.GoSyscall {
    		start := ev.Time()
    		if from == trace.GoUndetermined {
    			// Back-date the event to the start of the trace.
    			start = ctx.startTime
    		}
    		// Write down that we've entered a syscall. Note: we might have no G or P here
    		// if we're in a cgo callback or this is a transition from GoUndetermined
    		// (i.e. the G has been blocked in a syscall).
    		gs.syscallBegin(start, goID, ev.Stack())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. src/cmd/trace/threadgen.go

    	// Handle syscalls.
    	if to == trace.GoSyscall {
    		start := ev.Time()
    		if from == trace.GoUndetermined {
    			// Back-date the event to the start of the trace.
    			start = ctx.startTime
    		}
    		// Write down that we've entered a syscall. Note: we might have no P here
    		// if we're in a cgo callback or this is a transition from GoUndetermined
    		// (i.e. the G has been blocked in a syscall).
    		gs.syscallBegin(start, ev.Thread(), ev.Stack())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. src/internal/trace/testtrace/validation.go

    			// Basic state transition validation.
    			id := tr.Resource.Goroutine()
    			old, new := tr.Goroutine()
    			if new == trace.GoUndetermined {
    				e.Errorf("transition to undetermined state for goroutine %d", id)
    			}
    			if v.seenSync && old == trace.GoUndetermined {
    				e.Errorf("undetermined goroutine %d after first global sync", id)
    			}
    			if new == trace.GoNotExist && v.hasAnyRange(trace.MakeResourceID(id)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. src/cmd/trace/procgen.go

    	if to == trace.GoSyscall && ev.Proc() != trace.NoProc {
    		start := ev.Time()
    		if from == trace.GoUndetermined {
    			// Back-date the event to the start of the trace.
    			start = ctx.startTime
    		}
    		// Write down that we've entered a syscall. Note: we might have no P here
    		// if we're in a cgo callback or this is a transition from GoUndetermined
    		// (i.e. the G has been blocked in a syscall).
    		gs.syscallBegin(start, ev.Proc(), ev.Stack())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. src/cmd/trace/viewer.go

    			File: f.File,
    			Line: int(f.Line),
    		})
    		return true
    	})
    	return frames
    }
    
    func viewerGState(state trace.GoState, inMarkAssist bool) traceviewer.GState {
    	switch state {
    	case trace.GoUndetermined:
    		return traceviewer.GDead
    	case trace.GoNotExist:
    		return traceviewer.GDead
    	case trace.GoRunnable:
    		return traceviewer.GRunnable
    	case trace.GoRunning:
    		return traceviewer.GRunning
    	case trace.GoWaiting:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  6. src/internal/trace/resources.go

    const NoGoroutine = GoID(-1)
    
    // GoState represents the state of a goroutine.
    //
    // New GoStates may be added in the future. Users of this type must be robust
    // to that possibility.
    type GoState uint8
    
    const (
    	GoUndetermined GoState = iota // No information is known about the goroutine.
    	GoNotExist                    // Goroutine does not exist.
    	GoRunnable                    // Goroutine is runnable but not running.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8K bytes
    - Viewed (0)
  7. src/internal/trace/summary_test.go

    				t.Errorf("found region start event for the wrong resource: wanted goroutine %d, got %s", goid, st.Resource)
    			}
    			if old, _ := st.Goroutine(); old != trace.GoNotExist && old != trace.GoUndetermined {
    				t.Errorf("expected transition from GoNotExist or GoUndetermined, got transition from %s instead", old)
    			}
    		}
    	default:
    		t.Errorf("unexpected want start event type: %s", wantStart)
    	}
    
    	switch wantEnd {
    	case trace.EventBad:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. src/internal/trace/summary.go

    				break
    			}
    
    			// Handle transition out.
    			g := s.gs[id]
    			switch old {
    			case GoUndetermined, GoNotExist:
    				g = &GoroutineSummary{ID: id, goroutineSummary: &goroutineSummary{}}
    				// If we're coming out of GoUndetermined, then the creation time is the
    				// time of the last sync.
    				if old == GoUndetermined {
    					g.CreationTime = s.syncTs
    				} else {
    					g.CreationTime = ev.Time()
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  9. src/internal/trace/order.go

    		}
    		s.seq = makeSeq(gen, 0) // Reset seq.
    	} else if gen == o.initialGen {
    		// Set the state.
    		o.gStates[gid] = &gState{id: gid, status: status, seq: makeSeq(gen, 0)}
    		oldState = GoUndetermined
    	} else {
    		return curCtx, false, fmt.Errorf("found goroutine status for new goroutine after the first generation: id=%v status=%v", gid, status)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 52.4K bytes
    - Viewed (0)
Back to top