diff options
| author | Austin Clements <austin@google.com> | 2017-06-13 11:32:17 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2017-09-27 16:29:09 +0000 |
| commit | 84d2c7ea835c238f466de64066b65614d1bc7dbe (patch) | |
| tree | 79a73176bd18bb496e8505afdcd848b1c1c0b044 /src/runtime/mgcmark.go | |
| parent | 197f9ba11d4559cbd19350ca652da7881f4b273f (diff) | |
| download | go-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.go | 2 |
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 } |
