aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/sql.go
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2023-11-21 22:42:35 +0000
committerMichael Knyszek <mknyszek@google.com>2023-11-22 16:30:57 +0000
commit5249947f11b8238c2e2b878665be411fc6ba194b (patch)
tree0a8e13718e8b22467191481bcb6fea4e5e6b4325 /src/database/sql/sql.go
parentd4430f6913b0eacb662a69884d12850864616c37 (diff)
downloadgo-5249947f11b8238c2e2b878665be411fc6ba194b.tar.xz
runtime: don't hold the table lock in (*traceStackTable).dump
There's a conceptual cycle between traceStackTable.lock and allocation-related locks, but it can't happen in practice because the caller guarantees that there are no more writers to the table at the point that dump is called. But if that's true, then the lock isn't necessary at all. It would be difficult to model this quiesence in the lockrank mode, so just don't hold the lock and expand the documentation of the dump method. Change-Id: Id4db61363f075b7574135529915e8bd4f4f4c082 Reviewed-on: https://go-review.googlesource.com/c/go/+/544177 Reviewed-by: Matthew Dempsky <mdempsky@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/database/sql/sql.go')
0 files changed, 0 insertions, 0 deletions