]> Cypherpunks repositories - gostls13.git/commit
runtime/pprof: retry vmmap invocation if it failed due to a reported temporary resour...
authorCosmos Nicolaou <cosmos.nicolaou@gmail.com>
Wed, 29 Nov 2023 19:04:57 +0000 (11:04 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 29 Nov 2023 21:44:02 +0000 (21:44 +0000)
commit858cd8da569938913541d013af27a2a2a875fcb5
tree8f3ba22b82faf5f0dd534c7de54b883f07720370
parent83da21f0526ccebf0bcd83434e56b82c8a75f269
runtime/pprof: retry vmmap invocation if it failed due to a reported temporary resource shortage

As per #62352 the invocation of vmmap may fail (very rarely) due to
a temporary lack of resources on the test runner machine. This PR
allows for retrying the invocation a fixed number of times before
giving up. This is because we suspect the failure is due to
sensible to retry.

Fixes: #62352
Change-Id: I51aa66b949753d8127cc307181b6ef32e91d5b05
Reviewed-on: https://go-review.googlesource.com/c/go/+/545935
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/pprof/vminfo_darwin_test.go