• Austin Clements's avatar
    runtime: fix GC assist retry path · 984753b6
    Austin Clements authored
    GC assists retry if preempted or if they fail to park. However, on the
    retry path they currently use stale statistics. In particular, the
    retry can use "debtBytes", but debtBytes isn't updated when the debt
    changes (since other than retries it is only used once). Also, though
    less of a problem, the if the assist ratio has changed while the
    assist was blocked, the retry will still use the old assist ratio.
    
    Fix all of this by simply making the retry jump back to where we
    compute these statistics, rather than just after.
    
    Change-Id: I2ed8b4f0fc9f008ff060aa926f4334b662ac7d3f
    Reviewed-on: https://go-review.googlesource.com/30701Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    984753b6
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...