• Vladimir Stefanovic's avatar
    runtime: 8-byte align the heap_live field for atomic access · d3a3b74a
    Vladimir Stefanovic authored
    mheap_.heap_live is an atomically accessed uint64. It is currently not 8-byte
    aligned on 32-bit platforms, which has been okay because it's only accessed via
    Xadd64, which doesn't require alignment on 386 or ARM32. However, Xadd64 on
    MIPS32 does require 8-byte alignment.
    
    Add a padding field to force 8-byte alignment of heap_live and prevent an
    alignment check crash on MIPS32.
    
    Change-Id: I7eddf7883aec7a0a7e0525af5d58ed4338a401d0
    Reviewed-on: https://go-review.googlesource.com/31635
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    d3a3b74a
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...