diff options
author | Russ Cox <rsc@golang.org> | 2014-09-12 16:12:39 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-09-12 16:12:39 -0400 |
commit | 44753479c60f66ee3051ddc0bf5d420b2a1bf662 (patch) | |
tree | f49cafa7902a5624c9ec41e5b8e962ab102da13e /src/runtime/runtime.go | |
parent | a14c1c986eba6ca6a35bfb9feb833b8eff53c7b1 (diff) | |
download | go-44753479c60f66ee3051ddc0bf5d420b2a1bf662.tar.gz go-44753479c60f66ee3051ddc0bf5d420b2a1bf662.zip |
runtime: remove a few untyped allocations
LGTM=iant, khr, rlh
R=khr, iant, bradfitz, rlh
CC=dvyukov, golang-codereviews
https://golang.org/cl/142030044
Diffstat (limited to 'src/runtime/runtime.go')
-rw-r--r-- | src/runtime/runtime.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go index d5b31559a2..d4f7c64a52 100644 --- a/src/runtime/runtime.go +++ b/src/runtime/runtime.go @@ -35,3 +35,7 @@ func tickspersecond() int64 { unlock(&ticks.lock) return r } + +func makeStringSlice(n int) []string { + return make([]string, n) +} |