From 44753479c60f66ee3051ddc0bf5d420b2a1bf662 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 12 Sep 2014 16:12:39 -0400 Subject: runtime: remove a few untyped allocations LGTM=iant, khr, rlh R=khr, iant, bradfitz, rlh CC=dvyukov, golang-codereviews https://golang.org/cl/142030044 --- src/runtime/runtime.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/runtime/runtime.go') 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) +} -- cgit v1.3