• Martin Möhrmann's avatar
    runtime: remove maxstring · 252093f1
    Martin Möhrmann authored
    Before this CL the runtime prevented printing of overlong strings with the print
    function when the length of the string was determined to be corrupted.
    Corruption was checked by comparing the string size against the limit
    which was stored in maxstring.
    
    However maxstring was not updated everywhere were go strings were created
    e.g. for string constants during compile time. Thereby the check for maximum
    string length prevented the printing of some valid strings.
    
    The protection maxstring provided did not warrant the bookkeeping
    and global synchronization needed to keep maxstring updated to the
    correct limit everywhere.
    
    Fixes #16999
    
    Change-Id: I62cc2f4362f333f75b77f199ce1a71aac0ff7aeb
    Reviewed-on: https://go-review.googlesource.com/28813Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    252093f1
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...