]> Cypherpunks repositories - gostls13.git/commit
runtime: remove mcache field from m
authorIan Lance Taylor <iant@golang.org>
Mon, 4 Nov 2019 22:25:22 +0000 (14:25 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 24 Feb 2020 16:39:52 +0000 (16:39 +0000)
commit3093959ee10f5c28211094e784c954f6a304b9c9
tree52ce31ecacb6575a97097a193bb2abefc620c06c
parent7802b551769c9f39e2b08a13f7ba2b4e5c521f9e
runtime: remove mcache field from m

Having an mcache field in both m and p is confusing, so remove it from m.
Always use mcache field from p. Use new variable mcache0 during bootstrap.

Change-Id: If2cba9f8bb131d911d512b61fd883a86cf62cc98
Reviewed-on: https://go-review.googlesource.com/c/go/+/205239
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/malloc.go
src/runtime/mgcsweep.go
src/runtime/mheap.go
src/runtime/proc.go
src/runtime/runtime1.go
src/runtime/runtime2.go
src/runtime/stack.go