]> Cypherpunks repositories - gostls13.git/commit
runtime: fix use of wrong g in gentraceback
authorHeschi Kreinick <heschi@google.com>
Fri, 17 Aug 2018 20:32:02 +0000 (16:32 -0400)
committerHeschi Kreinick <heschi@google.com>
Thu, 23 Aug 2018 19:48:12 +0000 (19:48 +0000)
commitc9986d1452f3ef226bfd044fb0f128175a7dff03
treeb8f78037be8e0d16aec2700255bfdd52a5e3c0b6
parentb15a1e3cfb64aeeb90f74e0748524b38fde5ebf9
runtime: fix use of wrong g in gentraceback

gentraceback gets the currently running g to do some sanity checks, but
should use gp everywhere to do its actual work. Some noncritical checks
later accidentally used g instead of gp. This seems like it could be a
problem in many different contexts, but I noticed in Windows profiling,
where profilem calls gentraceback on a goroutine from a different
thread.

Change-Id: I3da27a43e833b257f6411ee6893bdece45a9323f
Reviewed-on: https://go-review.googlesource.com/128895
Run-TryBot: Heschi Kreinick <heschi@google.com>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/traceback.go