aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mgcmark.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2017-06-13 11:32:17 -0400
committerAustin Clements <austin@google.com>2017-09-27 16:29:09 +0000
commit84d2c7ea835c238f466de64066b65614d1bc7dbe (patch)
tree79a73176bd18bb496e8505afdcd848b1c1c0b044 /src/runtime/mgcmark.go
parent197f9ba11d4559cbd19350ca652da7881f4b273f (diff)
downloadgo-84d2c7ea835c238f466de64066b65614d1bc7dbe.tar.xz
runtime: dynamically allocate allp
This makes it possible to eliminate the hard cap on GOMAXPROCS. Updates #15131. Change-Id: I4c422b340791621584c118a6be1b38e8a44f8b70 Reviewed-on: https://go-review.googlesource.com/45573 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/runtime/mgcmark.go')
-rw-r--r--src/runtime/mgcmark.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mgcmark.go b/src/runtime/mgcmark.go
index 9029d19d43..efc1a042f9 100644
--- a/src/runtime/mgcmark.go
+++ b/src/runtime/mgcmark.go
@@ -1356,7 +1356,7 @@ func gcmarknewobject(obj, size, scanSize uintptr) {
//
// The world must be stopped.
func gcMarkTinyAllocs() {
- for _, p := range &allp {
+ for _, p := range allp {
if p == nil || p.status == _Pdead {
break
}