aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/database/sql/sql_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-03-08 11:26:00 -0500
committerRuss Cox <rsc@golang.org>2013-03-08 11:26:00 -0500
commit1a4599b41ac2220c58959f434518eddb1a84060c (patch)
treedd8a4cb331cf9592269217432081d613c9855586 /src/pkg/database/sql/sql_test.go
parent091d7210c7bbcc7497a48a41be091e1957d17717 (diff)
downloadgo-1a4599b41ac2220c58959f434518eddb1a84060c.tar.xz
runtime: clear locked bit when goroutine exits
Otherwise the next goroutine run on the m can get inadvertently locked if it executes a cgo call that turns on the internal lock. While we're here, fix the cgo panic unwind to decrement m->ncgo like the non-panic unwind does. Fixes #4971. R=golang-dev, iant, dvyukov CC=golang-dev https://golang.org/cl/7627043
Diffstat (limited to 'src/pkg/database/sql/sql_test.go')
0 files changed, 0 insertions, 0 deletions