• Austin Clements's avatar
    [dev.garbage] runtime: separate spans of noscan objects · d491e550
    Austin Clements authored
    Currently, we mix objects with pointers and objects without pointers
    ("noscan" objects) together in memory. As a result, for every object
    we grey, we have to check that object's heap bits to find out if it's
    noscan, which adds to the per-object cost of GC. This also hurts the
    TLB footprint of the garbage collector because it decreases the
    density of scannable objects at the page level.
    
    This commit improves the situation by using separate spans for noscan
    objects. This will allow a much simpler noscan check (in a follow up
    CL), eliminate the need to clear the bitmap of noscan objects (in a
    follow up CL), and improves TLB footprint by increasing the density of
    scannable objects.
    
    This is also a step toward eliminating dead bits, since the current
    noscan check depends on checking the dead bit of the first word.
    
    This has no effect on the heap size of the garbage benchmark.
    
    We'll measure the performance change of this after the follow-up
    optimizations.
    
    Change-Id: I13bdc4869538ece5649a8d2a41c6605371618e40
    Reviewed-on: https://go-review.googlesource.com/23700Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    d491e550
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...