mirror of
https://github.com/golang/go
synced 2024-11-05 16:06:10 -07:00
96b5a5404f
This change set fixes the issue by specifying a max buffer size of ~1 megabyte for Scanner. Previously the max was not set resulting in the default max which is ~64k. This increased max should not increase memory use for smaller, normal files because it is a max and the code expands the buffer as needed for large tokens. The change set includes an additional change to return an error from the Scanner which was ignored previously. Fixes golang/go#18201 Change-Id: I11be39af74d5eb3b353ad81ba1cb5404207aa65d Reviewed-on: https://go-review.googlesource.com/83800 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> |
||
---|---|---|
.. | ||
fastwalk_dirent_fileno.go | ||
fastwalk_dirent_ino.go | ||
fastwalk_portable.go | ||
fastwalk_test.go | ||
fastwalk_unix.go | ||
fastwalk.go | ||
fix_test.go | ||
fix.go | ||
imports.go | ||
mkindex.go | ||
mkstdlib.go | ||
sortimports.go | ||
zstdlib.go |