• Russ Cox's avatar
    runtime: print up to 10 words of arguments · c40480dd
    Russ Cox authored
    The old limit of 5 was chosen because we didn't actually know how
    many bytes of arguments there were; 5 was a halfway point between
    printing some useful information and looking ridiculous.
    
    Now we know how many bytes of arguments there are, and we stop
    the printing when we reach that point, so the "looking ridiculous" case
    doesn't happen anymore: we only print actual argument words.
    The cutoff now serves only to truncate very long (but real) argument lists.
    
    In multiple debugging sessions recently (completely unrelated bugs)
    I have been frustrated by not seeing more of the long argument lists:
    5 words is only 2.5 interface values or strings, and not even 2 slices.
    Double the max amount we'll show.
    
    LGTM=bradfitz
    R=golang-codereviews, bradfitz
    CC=golang-codereviews, iant, r
    https://golang.org/cl/83850043
    c40480dd
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...