]> Cypherpunks repositories - gostls13.git/commit
runtime: improve 386/amd64 systemstack
authorJosh Bleecher Snyder <josharian@gmail.com>
Sat, 24 Feb 2018 18:50:38 +0000 (10:50 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 27 Feb 2018 18:10:38 +0000 (18:10 +0000)
commitc5d6c42d35059bb911cf9f4a77704438ab4f9de0
tree5d9573e67beeb04350358d4988ee1ce7f69e7cf1
parentf399af3114400d791332cf77234f7b9d42cbfb50
runtime: improve 386/amd64 systemstack

Minor improvements, noticed while investigating other things.

Shorten the prologue.

Make branch direction better for static branch prediction;
the most common case by far is switching stacks (g==curg).

Change-Id: Ib2211d3efecb60446355cda56194221ccb78057d
Reviewed-on: https://go-review.googlesource.com/97377
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/asm_386.s
src/runtime/asm_amd64.s
src/runtime/asm_amd64p32.s