Descriptionruntime: 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 issue 7448.
Patch Set 1 #Patch Set 2 : diff -r 6d3659ee6de3 https://code.google.com/p/go/ #Patch Set 3 : diff -r 6d3659ee6de3 https://code.google.com/p/go/ #Patch Set 4 : diff -r 7cb38c8ff249 https://code.google.com/p/go/ #
MessagesTotal messages: 4
|