aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-12 16:12:39 -0400
committerRuss Cox <rsc@golang.org>2014-09-12 16:12:39 -0400
commit44753479c60f66ee3051ddc0bf5d420b2a1bf662 (patch)
treef49cafa7902a5624c9ec41e5b8e962ab102da13e /src/runtime/runtime.go
parenta14c1c986eba6ca6a35bfb9feb833b8eff53c7b1 (diff)
downloadgo-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.go4
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)
+}