]> Cypherpunks repositories - gostls13.git/commit
runtime: don't call mcache.refill on systemstack
authorAustin Clements <austin@google.com>
Sun, 23 Sep 2018 23:12:15 +0000 (19:12 -0400)
committerAustin Clements <austin@google.com>
Fri, 28 Sep 2018 18:39:49 +0000 (18:39 +0000)
commit01e6cfc2a0b2f9e363c6e305b14f3393d06b13b8
tree19bdb1a8df49c88ed42a34da436eccd53a13ad48
parent2d23ece135076698ea4724b02f07d71d1f2145fb
runtime: don't call mcache.refill on systemstack

mcache.refill doesn't need to run on the system stack; it just needs
to be non-preemptible. Its only caller, mcache.nextFree, also needs to
be non-preemptible, so we can remove the unnecessary systemstack
switch.

Change-Id: Iba5b3f4444855f1dc134485ba588efff3b54c426
Reviewed-on: https://go-review.googlesource.com/138196
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Rick Hudson <rlh@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/malloc.go