]> Cypherpunks repositories - gostls13.git/commit
runtime: print fatal messages without interleaving
authorKeith Randall <khr@golang.org>
Tue, 24 Sep 2024 22:11:54 +0000 (15:11 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 25 Sep 2024 15:13:19 +0000 (15:13 +0000)
commit6cb107452a5a5551a04baf6bc4ff0b8299dfb596
tree1d767f7dd2a6d7209c70980f4929ffaa8d086bf8
parentb17a55d0953429c9b23ef89407734ac9bba159f5
runtime: print fatal messages without interleaving

Grab the print lock around the set of prints we use to report
fatal errors. This ensures that each fatal error gets reported
atomically instead of interleaved with other fatal errors.

Fixes #69447

Change-Id: Ib3569f0c8210fd7e19a7d8ef4bc114f07469f317
Reviewed-on: https://go-review.googlesource.com/c/go/+/615655
Auto-Submit: Keith Randall <khr@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/crash_test.go
src/runtime/panic.go