• Austin Clements's avatar
    [dev.garbage] runtime: revive sweep fast path · b3579c09
    Austin Clements authored
    sweep used to skip mcental.freeSpan (and its locking) if it didn't
    find any new free objects. We lost that optimization when the
    freed-object counting changed in dad83f7 to count total free objects
    instead of newly freed objects.
    
    The previous commit brings back counting of newly freed objects, so we
    can easily revive this optimization by checking that count (like we
    used to) instead of the total free objects count.
    
    Change-Id: I43658707a1c61674d0366124d5976b00d98741a9
    Reviewed-on: https://go-review.googlesource.com/22596
    Run-TryBot: Austin Clements <austin@google.com>
    Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    b3579c09
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...
dev.garbage Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...