Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 60 for GoID (0.04 sec)

  1. src/runtime/traceback_test.go

    	return [20]int{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}
    }
    
    func TestTracebackParentChildGoroutines(t *testing.T) {
    	parent := fmt.Sprintf("goroutine %d", runtime.Goid())
    	var wg sync.WaitGroup
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		buf := make([]byte, 1<<10)
    		// We collect the stack only for this goroutine (by passing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  2. src/runtime/runtime2.go

    	//    param may point to a savedOpenDeferState.
    	param        unsafe.Pointer
    	atomicstatus atomic.Uint32
    	stackLock    uint32 // sigprof/scang lock; TODO: fold in to atomicstatus
    	goid         uint64
    	schedlink    guintptr
    	waitsince    int64      // approx time when the g become blocked
    	waitreason   waitReason // if status==Gwaiting
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  3. src/internal/trace/trace_test.go

    		// the runtime was generating extraneous events.
    		const (
    			entered = iota
    			blocked
    			runnable
    			running
    		)
    		gs := make(map[trace.GoID]int)
    		seenSpecialGoroutines := false
    		r, err := trace.NewReader(bytes.NewReader(tb))
    		if err != nil {
    			t.Error(err)
    		}
    		for {
    			ev, err := r.ReadEvent()
    			if err == io.EOF {
    				break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. src/runtime/heapdump.go

    		lr = 0
    	} else {
    		sp = gp.sched.sp
    		pc = gp.sched.pc
    		lr = gp.sched.lr
    	}
    
    	dumpint(tagGoroutine)
    	dumpint(uint64(uintptr(unsafe.Pointer(gp))))
    	dumpint(uint64(sp))
    	dumpint(gp.goid)
    	dumpint(uint64(gp.gopc))
    	dumpint(uint64(readgstatus(gp)))
    	dumpbool(isSystemGoroutine(gp, false))
    	dumpbool(false) // isbackground
    	dumpint(uint64(gp.waitsince))
    	dumpstr(gp.waitreason.String())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/runtime/stack.go

    			"\tsched={pc:", hex(gp.sched.pc), " sp:", hex(gp.sched.sp), " lr:", hex(gp.sched.lr), " ctxt:", gp.sched.ctxt, "}\n")
    	}
    	if sp < gp.stack.lo {
    		print("runtime: gp=", gp, ", goid=", gp.goid, ", gp->status=", hex(readgstatus(gp)), "\n ")
    		print("runtime: split stack overflow: ", hex(sp), " < ", hex(gp.stack.lo), "\n")
    		throw("runtime: split stack overflow")
    	}
    
    	if preempt {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. src/runtime/export_test.go

    	return
    }
    
    func GetNextArenaHint() uintptr {
    	return mheap_.arenaHints.addr
    }
    
    type G = g
    
    type Sudog = sudog
    
    func Getg() *G {
    	return getg()
    }
    
    func Goid() uint64 {
    	return getg().goid
    }
    
    func GIsWaitingOnMutex(gp *G) bool {
    	return readgstatus(gp) == _Gwaiting && gp.waitreason.isMutexWait()
    }
    
    var CasGStatusAlwaysTrack = &casgstatusAlwaysTrack
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  7. src/runtime/malloc.go

    					align = 2
    				} else {
    					align = 1
    				}
    			}
    			return persistentalloc(size, align, &memstats.other_sys)
    		}
    
    		if inittrace.active && inittrace.id == getg().goid {
    			// Init functions are executed sequentially in a single goroutine.
    			inittrace.allocs += 1
    		}
    	}
    
    	// assistG is the G to charge for this allocation, or nil if
    	// GC is not currently active.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  8. src/runtime/arena.go

    	// Again, because this chunk counts toward heapLive, potentially trigger a GC.
    	if t := (gcTrigger{kind: gcTriggerHeap}); t.test() {
    		gcStart(t)
    	}
    
    	if debug.malloc {
    		if inittrace.active && inittrace.id == getg().goid {
    			// Init functions are executed sequentially in a single goroutine.
    			inittrace.bytes += uint64(userArenaChunkBytes)
    		}
    	}
    
    	// Double-check it's aligned to the physical page size. Based on the current
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  9. src/runtime/mprof.go

    // system stack).
    func doRecordGoroutineProfile(gp1 *g, pcbuf []uintptr) {
    	if readgstatus(gp1) == _Grunning {
    		print("doRecordGoroutineProfile gp1=", gp1.goid, "\n")
    		throw("cannot read stack of running goroutine")
    	}
    
    	offset := int(goroutineProfile.offset.Add(1)) - 1
    
    	if offset >= len(goroutineProfile.records) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modfetch/zip_sum_test/testdata/zip_sums.csv

    github.com/peterhellberg/link,v1.0.0,h1:mUWkiegowUXEcmlb+ybF75Q/8D2Y0BjZtR8cxoKhaQo=,d320f4204fbe886e1cefc0b677af2bfaba855e9e6556a6e92e43bcd80c3bb7a5
    github.com/petermattis/goid,v0.0.0-20180202154549-b0b1615b78e5,h1:q2e307iGHPdTGp0hoxKjt1H5pDo6utceo3dQVK3I5XQ=,5134a176e306f9b973ff670a33c7536b59bf4114d83fd94f74c736ff0cc10ef0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 18 17:29:01 UTC 2020
    - 334.9K bytes
    - Viewed (0)
Back to top