]> Cypherpunks repositories - gostls13.git/commit
internal/trace/v2: tolerate having a P in GoCreateSyscall
authorMichael Anthony Knyszek <mknyszek@google.com>
Tue, 28 Nov 2023 17:10:46 +0000 (17:10 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 28 Nov 2023 20:49:54 +0000 (20:49 +0000)
commitaae7734658e5f302c0e3a10f6c5c596fd384dbd7
treeed1fb845c1e2ade12e774719125112e63a1c0d05
parentb2efd1de97402ec4b8fb4e9e0ec29c8e49e8e200
internal/trace/v2: tolerate having a P in GoCreateSyscall

On non-pthread platforms, it's totally possible for the same M to
GoCreateSyscall/GoDestroySyscall on the same thread multiple times. That
same thread may hold onto its P through all those calls.

For #64060.

Change-Id: Ib968bfd439ecd5bc24fc98d78c06145b0d4b7802
Reviewed-on: https://go-review.googlesource.com/c/go/+/545515
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/internal/trace/v2/order.go
src/internal/trace/v2/testdata/generators/go122-create-syscall-with-p.go [new file with mode: 0644]
src/internal/trace/v2/testdata/tests/go122-create-syscall-with-p.test [new file with mode: 0644]