aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/export_test.go
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2022-02-15 00:22:20 +0000
committerMichael Knyszek <mknyszek@google.com>2022-05-03 15:11:55 +0000
commit0feebe6eb594e28c29022c65ffcd2ae0e8bebac7 (patch)
tree38dbfd31814883226905f5abdcd238047e51c34a /src/runtime/export_test.go
parent01359b46815e63307077dfa03972f40d2e0d94fe (diff)
downloadgo-0feebe6eb594e28c29022c65ffcd2ae0e8bebac7.tar.xz
runtime: add byte count parser for GOMEMLIMIT
This change adds a parser for the GOMEMLIMIT environment variable's input. This environment variable accepts a number followed by an optional prefix expressing the unit. Acceptable units include B, KiB, MiB, GiB, TiB, where *iB is a power-of-two byte unit. For #48409. Change-Id: I6a3b4c02b175bfcf9c4debee6118cf5dda93bb6f Reviewed-on: https://go-review.googlesource.com/c/go/+/393400 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Pratt <mpratt@google.com> Run-TryBot: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/runtime/export_test.go')
-rw-r--r--src/runtime/export_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go
index 708da264b7..c364e5bea9 100644
--- a/src/runtime/export_test.go
+++ b/src/runtime/export_test.go
@@ -33,6 +33,7 @@ var Fastlog2 = fastlog2
var Atoi = atoi
var Atoi32 = atoi32
+var ParseByteCount = parseByteCount
var Nanotime = nanotime
var NetpollBreak = netpollBreak