• Russ Cox's avatar
    runtime: use manual stack for garbage collection · d4cc557b
    Russ Cox authored
    Old code was using recursion to traverse object graph.
    New code uses an explicit stack, cutting the per-pointer
    footprint to two words during the recursion and avoiding
    the standard allocator and stack splitting code.
    
    in test/garbage:
    
    Reduces parser runtime by 2-3%
    Reduces Peano runtime by 40%
    Increases tree runtime by 4-5%
    
    R=r
    CC=golang-dev
    https://golang.org/cl/2150042
    d4cc557b
Name
Last commit
Last update
..
386 Loading commit data...
arm Loading commit data...
README Loading commit data...
bootblock Loading commit data...
dot-bochsrc Loading commit data...
io.go Loading commit data...
mem.c Loading commit data...
os.h Loading commit data...
signals.h Loading commit data...
thread.c Loading commit data...