• Austin Clements's avatar
    runtime: detect and print corrupted free lists · 5250279e
    Austin Clements authored
    Issues #10240, #10541, #10941, #11023, #11027 and possibly others are
    indicating memory corruption in the runtime. One of the easiest places
    to both get corruption and detect it is in the allocator's free lists
    since they appear throughout memory and follow strict invariants. This
    commit adds a check when sweeping a span that its free list is sane
    and, if not, it prints the corrupted free list and panics. Hopefully
    this will help us collect more information on these failures.
    
    Change-Id: I6d417bcaeedf654943a5e068bd76b58bb02d4a64
    Reviewed-on: https://go-review.googlesource.com/10713Reviewed-by: 's avatarKeith Randall <khr@golang.org>
    Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    Run-TryBot: Austin Clements <austin@google.com>
    5250279e
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...