diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2013-08-05 22:58:02 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2013-08-05 22:58:02 +0400 |
| commit | d5ab7846113004e7fa3aaf64691d3d170988c311 (patch) | |
| tree | 1b674b3c6f1b703898adb14898998e8ca5eeefce /src/pkg/runtime/proc.c | |
| parent | f73972fa333ad3291c9b7118cf7ca129a758cb66 (diff) | |
| download | go-d5ab7846113004e7fa3aaf64691d3d170988c311.tar.xz | |
runtime: remove singleproc var
It was needed for the old scheduler,
because there temporary could be more threads than gomaxprocs.
In the new scheduler gomaxprocs is always respected.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/12438043
Diffstat (limited to 'src/pkg/runtime/proc.c')
| -rw-r--r-- | src/pkg/runtime/proc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c index c2ee6e9489..725a49668b 100644 --- a/src/pkg/runtime/proc.c +++ b/src/pkg/runtime/proc.c @@ -61,7 +61,6 @@ enum { MaxGomaxprocs = 1<<8 }; Sched runtime·sched; int32 runtime·gomaxprocs; uint32 runtime·needextram; -bool runtime·singleproc; bool runtime·iscgo; uint32 runtime·gcwaiting; M runtime·m0; @@ -2060,7 +2059,6 @@ procresize(int32 new) p->status = Pidle; pidleput(p); } - runtime·singleproc = new == 1; runtime·atomicstore((uint32*)&runtime·gomaxprocs, new); } |
