aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/sql.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2016-10-16 21:22:02 -0400
committerAustin Clements <austin@google.com>2016-10-19 21:36:53 +0000
commit2be3ab441578413972d93fc1048decc422640b09 (patch)
treeb9cfe68b808d6e7fc0750bd8f1813c8bd058a447 /src/database/sql/sql.go
parent7bc42a145a03d61b504b18d20f2a4e5d8e2436fd (diff)
downloadgo-2be3ab441578413972d93fc1048decc422640b09.tar.xz
runtime: keep gcMarkRootCheck happy with spare Gs
oneNewExtraM creates a spare M and G for use with cgo callbacks. The G doesn't run right away, but goes directly into syscall status. For the garbage collector, it's marked as "scan valid" and not on the rescan list, but I forgot to also mark it as "scan done". As a result, gcMarkRootCheck thinks that the goroutine hasn't been scanned and panics. This only affects GODEBUG=gccheckmark=1 mode, since we otherwise skip the gcMarkRootCheck. Fixes #17473. Change-Id: I94f5671c42eb44bd5ea7dc68fbf85f0c19e2e52c Reviewed-on: https://go-review.googlesource.com/31139 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/database/sql/sql.go')
0 files changed, 0 insertions, 0 deletions