Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for systemstack (0.14 sec)

  1. src/runtime/heapdump.go

    	// peak stack depths and we risk blowing the system stack.
    	// This is safe because the world is stopped, so we don't
    	// need to worry about anyone shrinking and therefore moving
    	// our stack.
    	var m MemStats
    	systemstack(func() {
    		// Call readmemstats_m here instead of deeper in
    		// writeheapdump_m because we might blow the system stack
    		// otherwise.
    		readmemstats_m(&m)
    		writeheapdump_m(fd, &m)
    	})
    
    	startTheWorld(stw)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/runtime/metrics.go

    	a.gcMiscSys = memstats.gcMiscSys.load()
    	a.otherSys = memstats.other_sys.load()
    	a.heapGoal = gcController.heapGoal()
    	a.gcCyclesDone = uint64(memstats.numgc)
    	a.gcCyclesForced = uint64(memstats.numforcedgc)
    
    	systemstack(func() {
    		lock(&mheap_.lock)
    		a.mSpanSys = memstats.mspan_sys.load()
    		a.mSpanInUse = uint64(mheap_.spanalloc.inuse)
    		a.mCacheSys = memstats.mcache_sys.load()
    		a.mCacheInUse = uint64(mheap_.cachealloc.inuse)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  3. src/runtime/time.go

    		// in blockTimerChan, but timerHeaped not being set means
    		// it hasn't run t.maybeAdd yet; in that case, running the
    		// timer ourselves now is fine.)
    		if now := nanotime(); t.when <= now {
    			systemstack(func() {
    				t.unlockAndRun(now) // resets t.when
    			})
    			t.lock()
    		}
    	}
    }
    
    // stop stops the timer t. It may be on some other P, so we can't
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  4. src/runtime/arena.go

    	if mp.mallocing != 0 {
    		throw("malloc deadlock")
    	}
    	if mp.gsignal == getg() {
    		throw("malloc during signal")
    	}
    	mp.mallocing = 1
    
    	// Allocate a new user arena.
    	var span *mspan
    	systemstack(func() {
    		span = mheap_.allocUserArenaChunk()
    	})
    	if span == nil {
    		throw("out of memory")
    	}
    	x := unsafe.Pointer(span.base())
    
    	// Allocate black during GC.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  5. src/runtime/traceruntime.go

    	// synchronize with the tracer trying to flush our buffer
    	// as well.
    	seq := mp.trace.seqlock.Add(1)
    	if debugTraceReentrancy && seq%2 != 1 {
    		throw("bad use of trace.seqlock or tracer is reentrant")
    	}
    	systemstack(func() {
    		lock(&trace.lock)
    		for i := range mp.trace.buf {
    			if mp.trace.buf[i] != nil {
    				// N.B. traceBufFlush accepts a generation, but it
    				// really just cares about gen%2.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  6. src/runtime/cgocall.go

    	gp.m.winsyscall = winsyscall
    }
    
    func cgocallbackg1(fn, frame unsafe.Pointer, ctxt uintptr) {
    	gp := getg()
    
    	if gp.m.needextram || extraMWaiters.Load() > 0 {
    		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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  7. src/runtime/signal_unix.go

    // and printable name of each signal.
    type sigTabT struct {
    	flags int32
    	name  string
    }
    
    //go:linkname os_sigpipe os.sigpipe
    func os_sigpipe() {
    	systemstack(sigpipe)
    }
    
    func signame(sig uint32) string {
    	if sig >= uint32(len(sigtable)) {
    		return ""
    	}
    	return sigtable[sig].name
    }
    
    const (
    	_SIG_DFL uintptr = 0
    	_SIG_IGN uintptr = 1
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  8. src/runtime/metrics_test.go

    			acceptStacks = append([][]string(nil), acceptStacks...)
    			for i, stk := range acceptStacks {
    				if goexperiment.StaticLockRanking {
    					if !slices.ContainsFunc(stk, func(s string) bool {
    						return s == "runtime.systemstack" || s == "runtime.mcall" || s == "runtime.mstart"
    					}) {
    						// stk is a call stack that is still on the user stack when
    						// it calls runtime.unlock. Add the extra function that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  9. go.mod

    // Run hack/pin-dependency.sh to change pinned dependency versions.
    // Run hack/update-vendor.sh to update go.mod files and the vendor directory.
    
    module k8s.io/kubernetes
    
    go 1.22.0
    
    require (
    	bitbucket.org/bertimus9/systemstat v0.5.0
    	github.com/JeffAshton/win_pdh v0.0.0-20161109143554-76bb4ee9f0ab
    	github.com/Microsoft/go-winio v0.6.0
    	github.com/Microsoft/hcsshim v0.8.25
    	github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 21:47:11 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top