• Austin Clements's avatar
    runtime: debug code to catch bad gcWork.puts · 9098d1d8
    Austin Clements authored
    This adds a debug check to throw immediately if any pointers are added
    to the gcWork buffer after the mark completion barrier. The intent is
    to catch the source of the cached GC work that occasionally produces
    "P has cached GC work at end of mark termination" failures.
    
    The result should be that we get "throwOnGCWork" throws instead of "P
    has cached GC work at end of mark termination" throws, but with useful
    stack traces.
    
    This should be reverted before the release. I've been unable to
    reproduce this issue locally, but this issue appears fairly regularly
    on the builders, so the intent is to catch it on the builders.
    
    This probably slows down the GC slightly.
    
    For #27993.
    
    Change-Id: I5035e14058ad313bfbd3d68c41ec05179147a85c
    Reviewed-on: https://go-review.googlesource.com/c/149969
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    9098d1d8
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...