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:
parent
1cb6a86a06
commit
8dede09346
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue