aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2022-03-02 20:49:36 +0000
committerMichael Knyszek <mknyszek@google.com>2022-05-03 15:12:04 +0000
commit986a31053d1cdb866153b44b6defa9f0400c4d4b (patch)
tree4f6c2a148e50f9447ccb453bb8b9085290db7f71 /src/runtime/debug
parent0feebe6eb594e28c29022c65ffcd2ae0e8bebac7 (diff)
downloadgo-986a31053d1cdb866153b44b6defa9f0400c4d4b.tar.xz
runtime: add a non-functional memory limit to the pacer
Nothing much to see here, just some plumbing to make latter CLs smaller and clearer. For #48409. Change-Id: Ide23812d5553e0b6eea5616c277d1a760afb4ed0 Reviewed-on: https://go-review.googlesource.com/c/go/+/393401 Run-TryBot: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/runtime/debug')
-rw-r--r--src/runtime/debug/stubs.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/debug/stubs.go b/src/runtime/debug/stubs.go
index 2cba136044..913d4b9b09 100644
--- a/src/runtime/debug/stubs.go
+++ b/src/runtime/debug/stubs.go
@@ -15,3 +15,4 @@ func setMaxStack(int) int
func setGCPercent(int32) int32
func setPanicOnFault(bool) bool
func setMaxThreads(int) int
+func setMemoryLimit(int64) int64