]> Cypherpunks repositories - gostls13.git/commit
runtime: rearrange framepointer check condition
authorAustin Clements <austin@google.com>
Tue, 3 Feb 2015 14:18:15 +0000 (09:18 -0500)
committerAustin Clements <austin@google.com>
Tue, 3 Feb 2015 14:37:24 +0000 (14:37 +0000)
commitfc5baec37f65baf33a8b6777e576b85de62654ec
treed41651ad94cd79257bb83445c84ffc2eabb2c1b1
parent67a03fd6a2c6d13154d7f27c464023422b83c05d
runtime: rearrange framepointer check condition

The test for the framepointer experiment flag is cheaper and more
branch-predictable than the other parts of this conditional, so move
it first.  This is also more readable.

(Originally, the flag check required parsing the experiments string,
which is why it was done last.  Now that flag is cached.)

Change-Id: I84e00fa7e939e9064f0fa0a4a6fe00576dd61457
Reviewed-on: https://go-review.googlesource.com/3782
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/traceback.go