diff options
| author | Damien Neil <dneil@google.com> | 2025-05-21 15:08:08 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-05-27 14:47:13 -0700 |
| commit | fce9d4515defec0473ca3a685408ef5304d23aa9 (patch) | |
| tree | 9c6486a05682e82f885896dfe586612dac44f4fc /src/syscall | |
| parent | b78e38065efd5f4079564b9e8e3529950ba0dd52 (diff) | |
| download | go-fce9d4515defec0473ca3a685408ef5304d23aa9.tar.xz | |
runtime, testing/synctest: verify cleanups/finalizers run outside bubbles
Cleanup functions and finalizers must not run in a synctest bubble.
If they did, a function run by the GC at an unpredictable time
could unblock a bubble that synctest believes is durably
blocked.
Add a test verifying that cleanups and finalizers are always
run by non-bubbled goroutines. (This is already the case because
we never add system goroutines to a bubble.)
For #67434
Change-Id: I5a48db2b26f9712c3b0dc1f425d99814031a2fc1
Reviewed-on: https://go-review.googlesource.com/c/go/+/675257
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/syscall')
0 files changed, 0 insertions, 0 deletions
