]> Cypherpunks repositories - gostls13.git/commit
runtime: better stack traces in race reports
authorDmitriy Vyukov <dvyukov@google.com>
Fri, 30 Nov 2012 06:29:41 +0000 (10:29 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Fri, 30 Nov 2012 06:29:41 +0000 (10:29 +0400)
commit0ce96f9ef4533430634fe4329b640176074ef9c4
treefbb5d8af81e28fea273b39c772987b790e0e666b
parentc3c107f67c86e9e0bf03f831be4f9417c75463a4
runtime: better stack traces in race reports
When a race happens inside of runtime (chan, slice, etc),
currently reports contain only user file:line.
If the line contains a complex expression,
it's difficult to figure out where the race exactly.
This change adds one more top frame with exact
runtime function (e.g. runtime.chansend, runtime.mapaccess).

R=golang-dev
CC=golang-dev
https://golang.org/cl/6851125
src/pkg/runtime/chan.c
src/pkg/runtime/hashmap.c
src/pkg/runtime/race.c
src/pkg/runtime/race.h
src/pkg/runtime/race0.c
src/pkg/runtime/slice.c