]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: test that stack barriers never appear in profile
authorAustin Clements <austin@google.com>
Wed, 18 Nov 2015 19:59:09 +0000 (14:59 -0500)
committerAustin Clements <austin@google.com>
Thu, 19 Nov 2015 16:35:43 +0000 (16:35 +0000)
commit9a7893550c506c2fb69711334ace1ae17176ccf4
tree3fb79401899c115c2950ff5aba2abb917481e0ad
parent9c9d74aba7eb4de2a253b04817ff26b32a6fea40
runtime/pprof: test that stack barriers never appear in profile

This adds a test that runs CPU profiling with a high load of stack
barriers and stack barrier insertion/removal operations and checks
that both 1) the runtime doesn't crash and 2) stackBarrier itself
never appears in a profile. Prior to the fix for gentraceback starting
in the middle of stackBarrier, condition 2 often failed.

Change-Id: Ic28860448859029779844c4bf3bb28ca84611e2c
Reviewed-on: https://go-review.googlesource.com/17037
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/pprof/pprof_test.go