diff options
| author | Russ Cox <rsc@golang.org> | 2013-03-08 11:26:00 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-03-08 11:26:00 -0500 |
| commit | 1a4599b41ac2220c58959f434518eddb1a84060c (patch) | |
| tree | dd8a4cb331cf9592269217432081d613c9855586 /src/pkg/database/sql/sql_test.go | |
| parent | 091d7210c7bbcc7497a48a41be091e1957d17717 (diff) | |
| download | go-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
