From b6a39a25455b07b98a48b97ebfb761fb080af825 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 4 Apr 2013 17:04:18 -0700 Subject: [PATCH] strconv: remove some test TODOs and adjust malloc limits lower These no longer allocate. R=golang-dev, dave CC=golang-dev https://golang.org/cl/8340047 --- src/pkg/strconv/strconv_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pkg/strconv/strconv_test.go b/src/pkg/strconv/strconv_test.go index 3cd7835cccb..40ab4ce6a4d 100644 --- a/src/pkg/strconv/strconv_test.go +++ b/src/pkg/strconv/strconv_test.go @@ -20,14 +20,12 @@ var ( desc string fn func() }{ - // TODO(bradfitz): this might be 0, once escape analysis is better - {1, `AppendInt(localBuf[:0], 123, 10)`, func() { + {0, `AppendInt(localBuf[:0], 123, 10)`, func() { var localBuf [64]byte AppendInt(localBuf[:0], 123, 10) }}, {0, `AppendInt(globalBuf[:0], 123, 10)`, func() { AppendInt(globalBuf[:0], 123, 10) }}, - // TODO(bradfitz): this might be 0, once escape analysis is better - {1, `AppendFloat(localBuf[:0], 1.23, 'g', 5, 64)`, func() { + {0, `AppendFloat(localBuf[:0], 1.23, 'g', 5, 64)`, func() { var localBuf [64]byte AppendFloat(localBuf[:0], 1.23, 'g', 5, 64) }},