]> Cypherpunks repositories - gostls13.git/commit
runtime: add mp parameter for getMCache
authorLeonard Wang <wangdeyu0907@gmail.com>
Sat, 11 Sep 2021 12:53:24 +0000 (20:53 +0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 28 Sep 2021 18:43:19 +0000 (18:43 +0000)
commit84ba117fd7446030f93ab679d5c819dc028ad881
tree79e38a589b42d1468bc875c0895af5baea6b3c98
parent8cf0a087c00db2e9ba24f763db903adcbffaade4
runtime: add mp parameter for getMCache

Since all callers of getMCache appear to have mp available,
we pass the mp to getMCache, and reduce one call to getg.
And after modification, getMCache is also inlined.

Change-Id: Ib7880c118336acc026ecd7c60c5a88722c3ddfc7
Reviewed-on: https://go-review.googlesource.com/c/go/+/349329
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Trust: Michael Knyszek <mknyszek@google.com>
Trust: Carlos Amedee <carlos@golang.org>
src/runtime/malloc.go
src/runtime/mcache.go