]> Cypherpunks repositories - gostls13.git/commit
runtime: move pdesc into p
authorAustin Clements <austin@google.com>
Tue, 13 Jun 2017 15:14:43 +0000 (11:14 -0400)
committerAustin Clements <austin@google.com>
Wed, 14 Jun 2017 00:43:30 +0000 (00:43 +0000)
commitf4f018518d6f8ca220871da072c7afe33e1cdbcb
treed35e006fb92ab1ae7e790fe33af1ba1354f56dac
parent0253299ab39c45f5694d35a233b83b23c69ec97f
runtime: move pdesc into p

There are currently two arrays indexed by P ID: allp and pdesc.
Consolidate these by moving the pdesc fields into type p so they can
be indexed off allp along with all other per-P state.

For #15131.

Change-Id: Ib6c4e6e7612281a1171ba4a0d62e52fd59e960b4
Reviewed-on: https://go-review.googlesource.com/45572
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/proc.go
src/runtime/runtime2.go