]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: add race annotations for goroutine profiles
authorRhys Hiltner <rhys@justin.tv>
Mon, 14 Feb 2022 20:16:22 +0000 (12:16 -0800)
committerMichael Knyszek <mknyszek@google.com>
Tue, 3 May 2022 20:49:07 +0000 (20:49 +0000)
commit209942fa88ef49e98a0f36dbbfa74c936a8d0fad
tree429acb5bdd6bcbd8ad4f30fc496400ddbbe223fc
parent7c404d59db3591a7c5854b38dc0f05fcb7ac0cff
runtime/pprof: add race annotations for goroutine profiles

The race annotations for goroutine label maps covered the special type
of read necessary to create CPU profiles. Extend that to include
goroutine profiles. Annotate the copy involved in creating new
goroutines.

Fixes #50292

Change-Id: I10f69314e4f4eba85c506590fe4781f4d6b8ec2d
Reviewed-on: https://go-review.googlesource.com/c/go/+/385660
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mprof.go
src/runtime/pprof/pprof_test.go
src/runtime/proc.go