]> Cypherpunks repositories - gostls13.git/commit
runtime: use mcache0 if no P in profilealloc
authorIan Lance Taylor <iant@golang.org>
Wed, 15 Apr 2020 22:39:53 +0000 (15:39 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 17 Apr 2020 00:45:52 +0000 (00:45 +0000)
commit7ea40f6594ada6631b3fd153c87916c51628a7e2
tree2bd5c3a360ed372d90504cfb38d37d806c629fa4
parent415da71c5d2b02beab9067af4c2ff435de15bb9b
runtime: use mcache0 if no P in profilealloc

A case that I missed in CL 205239: profilealloc can be called at
program startup if GOMAXPROCS is large enough.

Fixes #38474

Change-Id: I2f089fc6ec00c376680e1c0b8a2557b62789dd7f
Reviewed-on: https://go-review.googlesource.com/c/go/+/228420
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/malloc.go
src/runtime/proc_test.go