• Austin Clements's avatar
    runtime: improve stack barrier debugging · a7c09ad4
    Austin Clements authored
    This improves stack barrier debugging messages in various ways:
    
    1) Rather than printing only the remaining stack barriers (of which
       there may be none, which isn't very useful), print all of the G's
       stack barriers with a marker at the position the stack itself has
       unwound to and a marker at the problematic stack barrier (where
       applicable).
    
    2) Rather than crashing if we encounter a stack barrier when there are
       no more stkbar entries, print the same debug message we would if we
       had encountered a stack barrier at an unexpected location.
    
    Hopefully this will help with debugging #12528.
    
    Change-Id: I2e6fe6a778e0d36dd8ef30afd4c33d5d94731262
    Reviewed-on: https://go-review.googlesource.com/17147Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    a7c09ad4
Name
Last commit
Last update
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...