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

58 uses

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

	runtime
		chan.go#L822: 	async := debug.asynctimerchan.Load() != 0
		chan.go#L840: 		async := debug.asynctimerchan.Load() != 0
		cpuprof.go#L113: 	if prof.hz.Load() != 0 { // implies cpuprof.log != nil
		metrics.go#L318: 				out.scalar = uint64(gcController.gcPercent.Load())
		metrics.go#L854: 	nGsyscallNoP := sched.nGsyscallNoP.Load()
		mgc.go#L715: 		if gcController.gcPercent.Load() < 0 {
		mgcpacer.go#L493: 	gcPercent := c.gcPercent.Load()
		mgcpacer.go#L716: 		if sched.npidle.Load() != 0 && sched.nmspinning.Load() == 0 {
		mgcpacer.go#L1296: 	if gcPercent := c.gcPercent.Load(); gcPercent >= 0 {
		mgcpacer.go#L1341: 	out := c.gcPercent.Load()
		panic.go#L811: 		if debug.panicnil.Load() != 1 {
		proc.go#L411: 	if !gp.preempt && sched.npidle.Load() > 0 {
		proc.go#L3152: 	if sched.nmspinning.Load()+sched.npidle.Load() == 0 && sched.nmspinning.CompareAndSwap(0, 1) { // TODO: fast atomic
		proc.go#L3182: 	if sched.npidle.Load() == gomaxprocs-1 && sched.lastpoll.Load() != 0 {
		proc.go#L3215: 	if sched.nmspinning.Load() != 0 || !sched.nmspinning.CompareAndSwap(0, 1) {
		proc.go#L3517: 	if mp.spinning || 2*sched.nmspinning.Load() < gomaxprocs-sched.npidle.Load() {
		proc.go#L4098: 	npidle := sched.npidle.Load()
		proc.go#L5259: 		for pendingPreemptSignals.Load() > 0 {
		proc.go#L5702: 		n -= sched.ngsys.Load()
		proc.go#L5749: 	if prof.hz.Load() == 0 {
		proc.go#L5841: 	if prof.hz.Load() != 0 {
		proc.go#L5887: 	if prof.hz.Load() != hz {
		proc.go#L6524: 		if debug.schedtrace <= 0 && (sched.gcwaiting.Load() || sched.npidle.Load() == gomaxprocs) {
		proc.go#L6526: 			if sched.gcwaiting.Load() || sched.npidle.Load() == gomaxprocs {
		proc.go#L6703: 		if runqempty(pp) && sched.nmspinning.Load()+sched.npidle.Load() > 0 && pd.syscallwhen+10*1000*1000 > now {
		proc.go#L6906: 	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.runq.size)
		proc.go#L7174: 		for ; n != 0 && sched.npidle.Load() != 0; n-- {
		proc.go#L7944: 	if i >= active_spin || numCPUStartup <= 1 || gomaxprocs <= sched.npidle.Load()+sched.nmspinning.Load()+1 {
		signal_unix.go#L522: 	if prof.hz.Load() != 0 {
		signal_unix.go#L545: 	if prof.hz.Load() != 0 {
		signal_unix.go#L764: 	if crashing.Load() == 0 {
		signal_unix.go#L774: 		if crashing.Load() > 0 && gp != mp.curg && mp.curg != nil && readgstatus(mp.curg)&^_Gscan == _Grunning {
		signal_unix.go#L778: 		} else if crashing.Load() == 0 {
		signal_unix.go#L795: 		if crashing.Load() < mcount()-int32(extraMLength.Load()) {
		signal_unix.go#L816: 			maxCrashing := crashing.Load()
		signal_unix.go#L817: 			for timeout > 0 && (crashing.Load() < mcount()-int32(extraMLength.Load())) {
		signal_unix.go#L821: 				if c := crashing.Load(); c > maxCrashing {
		signal_unix.go#L829: 			c := crashing.Load()
		signal_unix.go#L833: 				c = crashing.Load()
		synctest.go#L172: 	if debug.asynctimerchan.Load() != 0 {
		time.go#L498: 	async := debug.asynctimerchan.Load() != 0
		time.go#L528: 		if t.period == 0 && t.isSending.Load() > 0 {
		time.go#L579: 	async := debug.asynctimerchan.Load() != 0
		time.go#L658: 		if oldPeriod == 0 && t.isSending.Load() > 0 {
		time.go#L1026: 	zombies := ts.zombies.Load()
		time.go#L1056: 		force = ts == &getg().m.p.ptr().timers && int(ts.zombies.Load()) > int(ts.len.Load())/4
		time.go#L1171: 	async := debug.asynctimerchan.Load() != 0
		trace.go#L398: 	if debug.traceallocfree.Load() != 0 {
		trace.go#L419: 	for trace.exitingSyscall.Load() != 0 {
		traceback.go#L1274: 	if gp.labels != nil && debug.tracebacklabels.Load() == 1 {
		traceruntime.go#L572: 	if heapGoal == ^uint64(0) || gcController.gcPercent.Load() < 0 {