• Austin Clements's avatar
    runtime: work around "P has cached GC work" failures · 95a6f112
    Austin Clements authored
    We still don't understand what's causing there to be remaining GC work
    when we enter mark termination, but in order to move forward on this
    issue, this CL implements a work-around for the problem.
    
    If debugCachedWork is false, this CL does a second check for remaining
    GC work as soon as it stops the world for mark termination. If it
    finds any work, it starts the world again and re-enters concurrent
    mark. This will increase STW time by a small amount proportional to
    GOMAXPROCS, but fixes a serious correctness issue.
    
    This works-around #27993.
    
    Change-Id: Ia23b85dd6c792ee8d623428bd1a3115631e387b8
    Reviewed-on: https://go-review.googlesource.com/c/156140
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarMichael Knyszek <mknyszek@google.com>
    Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    95a6f112
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...