Home | History | Annotate | Download | only in runtime

Lines Matching refs:nproc

606 			if work.nwait == work.nproc {
770 pad0 [_CacheLineSize]uint8 // prevents false-sharing between full/empty and nproc/nwait
771 nproc uint32
1256 // worker is working it decrements nwait. If nproc == nwait,
1258 work.nproc = ^uint32(0)
1310 if decnwait == work.nproc {
1311 println("runtime: work.nwait=", decnwait, "work.nproc=", work.nproc)
1312 throw("work.nwait was > work.nproc")
1344 if incnwait > work.nproc {
1346 "work.nwait=", incnwait, "work.nproc=", work.nproc)
1347 throw("work.nwait > work.nproc")
1349 done = incnwait == work.nproc && work.full == 0 && work.partial == 0
1424 work.nproc = uint32(gcprocs())
1430 parforsetup(work.markfor, work.nproc, uint32(_RootCount+allglen), false, markroot)
1431 if work.nproc > 1 {
1433 helpgc(int32(work.nproc))
1450 if work.nproc > 1 {
1712 nproc := work.nproc // work.nproc can change right after we increment work.ndone
1713 if xadd(&work.ndone, +1) == nproc-1 {