]> granicus.if.org Git - php/commit
Support fixed address mmap without replacement
authorDavid Carlier <devnexen@gmail.com>
Sun, 19 Aug 2018 19:32:28 +0000 (20:32 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 21 Aug 2018 06:31:31 +0000 (08:31 +0200)
commit0f68ff5c92924deb9401ce66458e67f250ccde74
treebf2c6a937b832b24b0d84700779da1447cc93a68
parent5e5311e0ba3dc3ff431fd5af1c2705ec8334c7c6
Support fixed address mmap without replacement

We did not use MAP_FIXED here, because it may replace an existing
mapping. This commit adds support for MAP_FIXED_NOREPLACE (available
on newer Linux kernels) and MAP_FIXED|MAP_EXCL (available on FreeBSD),
which avoid this issue.
Zend/zend_alloc.c