• Austin Clements's avatar
    runtime: ensure sysStat for mheap_.arenas is aligned · c8231558
    Austin Clements authored
    We don't want to account the memory for mheap_.arenas because most of
    it is never touched, so currently we pass the address of a uint64 on
    the heap. However, at least on mips, it's possible for this uint64 to
    be unaligned, which causes the atomic add in mSysStatInc to crash.
    
    Fix this by instead passing a nil stat pointer.
    
    Fixes #23946.
    
    Change-Id: I091587df1b3066c330b6bb4d834e4596c407910f
    Reviewed-on: https://go-review.googlesource.com/95695
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    c8231558
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...