Change information
Commit message:
cmd/compile: set the limit of string constants to 1 GiB
CL 761300's decsription said setting a limit of 10 GiB for string
constants, but the code actually set the limit to 10 MiB. 10 MiB
is rather small, and it is reasonable to have string constants of
that size. 10 GiB is unnecessarily too large, as it overflows int
and the address space on 32-bit platforms. Set the limit to 1 GiB,
so can be handled on 32-bit platforms and not arbitrarily small.
Change-Id: I9af08c23ed8ba383e330a3f0fca18eb4943b7579
Files:
- M src/cmd/compile/internal/types2/check_test.go
- M src/cmd/compile/internal/types2/const.go
- M src/go/types/check_test.go
- M src/go/types/const.go
- M src/internal/types/testdata/fixedbugs/issue78346.go
Change size: M
Delta: 5 files changed, 83 insertions(+), 10 deletions(-)
Branch: refs/heads/master