summaryrefslogtreecommitdiffstats
path: root/test/unit/pages.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix huge page test in test/unit/pages.Qi Wang2017-09-121-5/+7
| | | | | Huge pages could be disabled even if the kernel header has MAD_HUGEPAGE defined. Guard the huge pagetest with runtime detection.
* Fix test/unit/pages.Qi Wang2017-08-111-1/+1
| | | | | | As part of the metadata_thp support, We now have a separate swtich (JEMALLOC_HAVE_MADVISE_HUGE) for MADV_HUGEPAGE availability. Use that instead of JEMALLOC_THP (which doesn't guard pages_huge anymore) in tests.
* Add the --disable-thp option to support cross compiling.Jason Evans2017-05-301-1/+1
| | | | This resolves #669.
* Support --with-lg-page values larger than system page size.Jason Evans2017-04-191-1/+1
| | | | | | | | | All mappings continue to be PAGE-aligned, even if the system page size is smaller. This change is primarily intended to provide a mechanism for supporting multiple page sizes with the same binary; smaller page sizes work better in conjunction with jemalloc's design. This resolves #467.
* Remove extraneous parens around return arguments.Jason Evans2017-01-211-2/+2
| | | | This resolves #540.
* Update brace style.Jason Evans2017-01-211-4/+2
| | | | | | | Add braces around single-line blocks, and remove line breaks before function-opening braces. This resolves #537.
* Remove leading blank lines from function bodies.Jason Evans2017-01-131-1/+0
| | | | This resolves #535.
* Add huge page configuration and pages_[no}huge().Jason Evans2016-12-271-0/+30
Add the --with-lg-hugepage configure option, but automatically configure LG_HUGEPAGE even if it isn't specified. Add the pages_[no]huge() functions, which toggle huge page state via madvise(..., MADV_[NO]HUGEPAGE) calls.