]> Cypherpunks repositories - gostls13.git/commit
runtime: do not preempt race calls
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 19 Aug 2013 19:06:46 +0000 (23:06 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Mon, 19 Aug 2013 19:06:46 +0000 (23:06 +0400)
commitd017f578d01fa608d5ed40e343d0ffaf5fc0d476
tree59f2ee242d553d4121cf2b59bb906706b60214ac
parent21ea5103a4dab347baeb497675e0786424d6c974
runtime: do not preempt race calls
In the crash stack trace race cgocall() calls endcgo(),
this means that m->racecall is wrong.
Indeed this can happen is a goroutine is rescheduled to another M
during race call.
Disable preemption for race calls.
Fixes #6155.

R=golang-dev, rsc, cshapiro
CC=golang-dev
https://golang.org/cl/12866045
src/pkg/runtime/race.c