]> Cypherpunks repositories - gostls13.git/commit
runtime: move profiling pc buffers to m
authorFelix Geisendörfer <felix.geisendoerfer@datadoghq.com>
Fri, 29 Mar 2024 18:59:47 +0000 (19:59 +0100)
committerMichael Pratt <mpratt@google.com>
Wed, 8 May 2024 17:48:38 +0000 (17:48 +0000)
commit2141315251da47745c8f649c01e598a19bd68897
treeb6e34cc8dff2cd039e2d6e2fb14f5275e88fce39
parentc3bd543cc304b405b00263e2d4e683f9b65214ec
runtime: move profiling pc buffers to m

Move profiling pc buffers from being stack allocated to an m field.

This is motivated by the next patch, which will increase the default
stack depth to 128, which might lead to undesirable stack growth for
goroutines that produce profiling events.

Additionally, this change paves the way to make the stack depth
configurable via GODEBUG.

Change-Id: Ifa407f899188e2c7c0a81de92194fdb627cb4b36
Reviewed-on: https://go-review.googlesource.com/c/go/+/574699
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/malloc.go
src/runtime/mprof.go
src/runtime/proc.go
src/runtime/runtime2.go