• Russ Cox's avatar
    cmd/6g: fix stack zeroing on native client · ac0e12d1
    Russ Cox authored
    I am not sure what the rounding here was
    trying to do, but it was skipping the first
    pointer on native client.
    
    The code above the rounding already checks
    that xoffset is widthptr-aligned, so the rnd
    was a no-op everywhere but on Native Client.
    And on Native Client it was wrong.
    
    Perhaps it was supposed to be rounding down,
    not up, but zerorange handles the extra 32 bits
    correctly, so the rnd does not seem to be necessary
    at all.
    
    This wouldn't be worth doing for Go 1.3 except
    that it can affect code on the playground.
    
    Fixes #8155.
    
    LGTM=r, iant
    R=golang-codereviews, r, iant
    CC=dvyukov, golang-codereviews, khr
    https://golang.org/cl/108740047
    ac0e12d1
Name
Last commit
Last update
..
Makefile Loading commit data...
cgen.c Loading commit data...
doc.go Loading commit data...
galign.c Loading commit data...
gg.h Loading commit data...
ggen.c Loading commit data...
gobj.c Loading commit data...
gsubr.c Loading commit data...
opt.h Loading commit data...
peep.c Loading commit data...
prog.c Loading commit data...
reg.c Loading commit data...