runtime/internal/atomic.Int32.Load (method)

32 uses

	runtime/internal/atomic (current package)
		types.go#L20: func (i *Int32) Load() int32 {

	runtime
		cpuprof.go#L113: 	if prof.hz.Load() != 0 { // implies cpuprof.log != nil
		metrics.go#L288: 				out.scalar = uint64(gcController.gcPercent.Load())
		mgc.go#L582: 		if gcController.gcPercent.Load() < 0 {
		mgcpacer.go#L491: 	gcPercent := c.gcPercent.Load()
		mgcpacer.go#L1203: 	if gcPercent := c.gcPercent.Load(); gcPercent >= 0 {
		mgcpacer.go#L1248: 	out := c.gcPercent.Load()
		panic.go#L828: 		if debug.panicnil.Load() != 1 {
		proc.go#L358: 	if !gp.preempt && sched.npidle.Load() > 0 {
		proc.go#L2680: 	if sched.nmspinning.Load()+sched.npidle.Load() == 0 && sched.nmspinning.CompareAndSwap(0, 1) { // TODO: fast atomic
		proc.go#L2709: 	if sched.npidle.Load() == gomaxprocs-1 && sched.lastpoll.Load() != 0 {
		proc.go#L2732: 	if sched.nmspinning.Load() != 0 || !sched.nmspinning.CompareAndSwap(0, 1) {
		proc.go#L2994: 	if mp.spinning || 2*sched.nmspinning.Load() < gomaxprocs-sched.npidle.Load() {
		proc.go#L3531: 	npidle := int(sched.npidle.Load())
		proc.go#L4444: 		for pendingPreemptSignals.Load() > 0 {
		proc.go#L4860: 	n := int32(atomic.Loaduintptr(&allglen)) - sched.gFree.n - sched.ngsys.Load()
		proc.go#L4897: 	if prof.hz.Load() == 0 {
		proc.go#L4989: 	if prof.hz.Load() != 0 {
		proc.go#L5033: 	if prof.hz.Load() != hz {
		proc.go#L5552: 		if debug.schedtrace <= 0 && (sched.gcwaiting.Load() || sched.npidle.Load() == gomaxprocs) {
		proc.go#L5554: 			if sched.gcwaiting.Load() || sched.npidle.Load() == gomaxprocs {
		proc.go#L5714: 			if runqempty(pp) && sched.nmspinning.Load()+sched.npidle.Load() > 0 && pd.syscallwhen+10*1000*1000 > now {
		proc.go#L5805: 	print("SCHED ", (now-starttime)/1e6, "ms: gomaxprocs=", gomaxprocs, " idleprocs=", sched.npidle.Load(), " threads=", mcount(), " spinningthreads=", sched.nmspinning.Load(), " needspinning=", sched.needspinning.Load(), " idlethreads=", sched.nmidle, " runqueue=", sched.runqsize)
		proc.go#L5901: 		for ; n != 0 && sched.npidle.Load() != 0; n-- {
		proc.go#L6615: 	if i >= active_spin || ncpu <= 1 || gomaxprocs <= sched.npidle.Load()+sched.nmspinning.Load()+1 {
		signal_unix.go#L516: 	if prof.hz.Load() != 0 {
		signal_unix.go#L539: 	if prof.hz.Load() != 0 {