]> Cypherpunks repositories - gostls13.git/commit
runtime/debug: export SetMemoryLimit
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 30 Mar 2022 22:18:43 +0000 (22:18 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 3 May 2022 15:14:09 +0000 (15:14 +0000)
commitf01c20bf2ba889e5c9e3565175cc4276f9c11516
tree7a9b03f842cca859e98960ee47295458d1fd5aff
parent91f863013e6b5ba870f6bfbfda0b735cf54fb3ca
runtime/debug: export SetMemoryLimit

This change also adds an end-to-end test for SetMemoryLimit as a
testprog.

Fixes #48409.

Change-Id: I102d64acf0f36a43ee17b7029e8dfdd1ee5f057d
Reviewed-on: https://go-review.googlesource.com/c/go/+/397018
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
api/next/48409.txt [new file with mode: 0644]
src/runtime/debug/garbage.go
src/runtime/gc_test.go
src/runtime/mgc.go
src/runtime/testdata/testprog/gc.go