aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/malloc_test.go
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2025-12-03 23:13:36 +0000
committerMichael Knyszek <mknyszek@google.com>2025-12-05 11:36:56 -0800
commitfe4952f1165c43dcd195ab8b024f79ac5beced8a (patch)
tree903df7affa1d06b6d0cfd6cf93aba1c55d2c902b /src/runtime/malloc_test.go
parent8947f092a8427674b7628003b873f57d3b6cdd83 (diff)
downloadgo-fe4952f1165c43dcd195ab8b024f79ac5beced8a.tar.xz
runtime: relax threadsSlack in TestReadMetricsSched
runtime.GC is called in the test and may spin up GOMAXPROCS (proportional to the initial count) new threads. We need to be robust to this, and it happens relatively frequently on some platforms. We didn't notice this earlier since the heap is so miniscule that runtime.GC essentially finished instantly without all the threads getting spun up. Fixes #76613. Change-Id: I2af02cb090d5c1c952e4db53ad35895b6f23f638 Reviewed-on: https://go-review.googlesource.com/c/go/+/726642 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/malloc_test.go')
0 files changed, 0 insertions, 0 deletions