]> Cypherpunks repositories - gostls13.git/commit
runtime: lock mheap_.speciallock when allocating synctest specials
authorDamien Neil <dneil@google.com>
Tue, 26 Aug 2025 20:26:57 +0000 (13:26 -0700)
committerMichael Knyszek <mknyszek@google.com>
Tue, 9 Sep 2025 21:46:30 +0000 (14:46 -0700)
commit5dcedd65504cc9cadc9a5ea8bc3af51a26eec704
tree125db295480b4fa8173f307b2008739998b84259
parentd3be949ada01d7827f8edc87665fef5268634cb3
runtime: lock mheap_.speciallock when allocating synctest specials

Avoid racing use of mheap_.specialBubbleAlloc.

Fixes #75134

Change-Id: I0c9140c18d2bca1e1c3387cd81230f0e8c9ac23e
Reviewed-on: https://go-review.googlesource.com/c/go/+/699255
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/internal/synctest/synctest_test.go
src/runtime/synctest.go