From 986a31053d1cdb866153b44b6defa9f0400c4d4b Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Wed, 2 Mar 2022 20:49:36 +0000 Subject: 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 TryBot-Result: Gopher Robot Reviewed-by: Michael Pratt --- src/runtime/debug/stubs.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/runtime/debug') 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 -- cgit v1.3-5-g9baa