Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for cgoCtxt (0.25 sec)

  1. src/runtime/traceback.go

    func (u *unwinder) cgoCallers(pcBuf []uintptr) int {
    	if cgoTraceback == nil || u.frame.fn.funcID != abi.FuncID_cgocallback || u.cgoCtxt < 0 {
    		// We don't have a cgo unwinder (typical case), or we do but we're not
    		// in a cgo frame or we're out of cgo context.
    		return 0
    	}
    
    	ctxt := u.g.ptr().cgoCtxt[u.cgoCtxt]
    	u.cgoCtxt--
    	cgoContextPCs(ctxt, pcBuf)
    	for i, pc := range pcBuf {
    		if pc == 0 {
    			return i
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  2. src/runtime/cgocall.go

    		gp.m.needextram = false
    		systemstack(newextram)
    	}
    
    	if ctxt != 0 {
    		s := append(gp.cgoCtxt, ctxt)
    
    		// Now we need to set gp.cgoCtxt = s, but we could get
    		// a SIGPROF signal while manipulating the slice, and
    		// the SIGPROF handler could pick up gp.cgoCtxt while
    		// tracing up the stack.  We need to ensure that the
    		// handler always sees a valid slice, so set the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  3. src/runtime/runtime2.go

    	startpc       uintptr         // pc of goroutine function
    	racectx       uintptr
    	waiting       *sudog         // sudog structures this g is waiting on (that have a valid elem ptr); in lock order
    	cgoCtxt       []uintptr      // cgo traceback context
    	labels        unsafe.Pointer // profiler labels
    	timer         *timer         // cached timer for time.Sleep
    	sleepWhen     int64          // when to sleep until
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
Back to top