• Dave Cheney's avatar
    runtime: disable scavenger on 64k page size kernels · f9cc72cc
    Dave Cheney authored
    Update #9993
    
    If the physical page size of the machine is larger than the logical
    heap size, for example 8k logical, 64k physical, then madvise(2) will
    round up the requested amount to a 64k boundary and may discard pages
    close to the page being madvised.
    
    This patch disables the scavenger in these situations, which at the moment
    is only ppc64 and ppc64le systems. NaCl also uses a 64k page size, but
    it's not clear if it is affected by this problem.
    
    Change-Id: Ib897f8d3df5bd915ddc0b510f2fd90a30ef329ca
    Reviewed-on: https://go-review.googlesource.com/6091Reviewed-by: 's avatarDmitry Vyukov <dvyukov@google.com>
    f9cc72cc
mheap.go 28.5 KB