Raise iOS page-size to 16kB.

Newer iOS devices have 16kB page sizes and jemalloc's LG_PAGE size
cannot be smaller than the system's page size.

Closes #68 .
This commit is contained in:
gnzlbg 2018-10-15 14:55:26 +02:00
parent 1cb6a86a06
commit 8dede09346
1 changed files with 6 additions and 0 deletions

View File

@ -166,6 +166,12 @@ fn main() {
cmd.arg("--disable-thp");
}
if target.contains("ios") {
// newer iOS deviced have 16kb page sizes:
// closed: https://github.com/alexcrichton/jemallocator/issues/68
cmd.arg("--with-lg-page=14");
}
if disable_bg_thread {
cmd.arg("--with-malloc-conf=background_thread:false");
}