diff options
| author | Leonard Wang <wangdeyu0907@gmail.com> | 2021-09-11 20:53:24 +0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2021-09-28 18:43:19 +0000 |
| commit | 84ba117fd7446030f93ab679d5c819dc028ad881 (patch) | |
| tree | 79e38a589b42d1468bc875c0895af5baea6b3c98 /src/runtime/stack.go | |
| parent | 8cf0a087c00db2e9ba24f763db903adcbffaade4 (diff) | |
| download | go-84ba117fd7446030f93ab679d5c819dc028ad881.tar.xz | |
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>
Diffstat (limited to 'src/runtime/stack.go')
0 files changed, 0 insertions, 0 deletions
