summaryrefslogtreecommitdiffstats
path: root/src/jemalloc_cpp.cpp
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-11-17 21:36:17 (GMT)
committerJason Evans <jasone@canonware.com>2016-11-24 08:15:55 (GMT)
commite98a620c59ac20b13e2de796164cc67f050ed2bf (patch)
tree860d74fd06a3d46e3f7b2382e8d2e1da3c0c6e5a /src/jemalloc_cpp.cpp
parentfc11f3cb8443c029f54bf9ba21574b0f61996dd2 (diff)
downloadjemalloc-e98a620c59ac20b13e2de796164cc67f050ed2bf.zip
jemalloc-e98a620c59ac20b13e2de796164cc67f050ed2bf.tar.gz
jemalloc-e98a620c59ac20b13e2de796164cc67f050ed2bf.tar.bz2
Mark partially purged arena chunks as non-hugepage.
Add the pages_[no]huge() functions, which toggle huge page state via madvise(..., MADV_[NO]HUGEPAGE) calls. The first time a page run is purged from within an arena chunk, call pages_nohuge() to tell the kernel to make no further attempts to back the chunk with huge pages. Upon arena chunk deletion, restore the associated virtual memory to its original state via pages_huge(). This resolves #243.
Diffstat (limited to 'src/jemalloc_cpp.cpp')
0 files changed, 0 insertions, 0 deletions