aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/stack.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-03-06 18:34:29 -0500
committerRuss Cox <rsc@golang.org>2014-03-06 18:34:29 -0500
commitda1bea0ef0355482e78b8dc0f3cf2f992a8464d7 (patch)
tree58b71ad767a3bc2cbee8229d0d88f28f097de47a /src/pkg/runtime/stack.c
parent1d2b7171d500bbd549d6915b3d65340c117807fc (diff)
downloadgo-da1bea0ef0355482e78b8dc0f3cf2f992a8464d7.tar.xz
runtime: fix malloc page alignment + efence
Two memory allocator bug fixes. - efence is not maintaining the proper heap metadata to make eventual memory reuse safe, so use SysFault. - now that our heap PageSize is 8k but most hardware uses 4k pages, SysAlloc and SysReserve results must be explicitly aligned. Do that in a few more call sites and document this fact in malloc.h. Fixes #7448. LGTM=iant R=golang-codereviews, josharian, iant CC=dvyukov, golang-codereviews https://golang.org/cl/71750048
Diffstat (limited to 'src/pkg/runtime/stack.c')
0 files changed, 0 insertions, 0 deletions