]> Cypherpunks repositories - gostls13.git/commit
runtime: establish happens-before between goroutine and bubble exit
authorDamien Neil <dneil@google.com>
Fri, 7 Feb 2025 17:55:15 +0000 (09:55 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 10 Feb 2025 18:48:27 +0000 (10:48 -0800)
commit3924fe92b61042df7bef5c19db0ab0316d111e9b
treef658e7988d55e97f2972f5e7be994584645396de
parenta704d39b29dfc21599f644909c0f98bbfa745cb4
runtime: establish happens-before between goroutine and bubble exit

synctest.Run waits for all bubbled goroutines to exit before returning.
Establish a happens-before relationship between the bubbled goroutines
exiting and Run returning.

For #67434

Change-Id: Ibda7ec2075ae50838c0851e60dc5b3c6f3ca70fb
Reviewed-on: https://go-review.googlesource.com/c/go/+/647755
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/internal/synctest/synctest_test.go
src/runtime/synctest.go