summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2021-02-13 07:58:48 +0000
committerNikita Popov <nikita.ppv@gmail.com>2021-02-15 09:48:04 +0100
commit2b93ae601a892f870ce3677846fba84f6a5b0289 (patch)
treec6795c297d2129753f5b880b23761d68fda08ad8 /Zend
parentb11771271ea41c9c9ec7d1d408eb13bb539bcbc6 (diff)
downloadphp-git-2b93ae601a892f870ce3677846fba84f6a5b0289.tar.gz
Use VM_MAKE_TAG for macos memory tag
In case Apple changes the meaning of the macro in the future. Closes GH-6687.
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c
index 97f77827d8..10e739c0ee 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -114,10 +114,11 @@ static size_t _real_page_size = ZEND_MM_PAGE_SIZE;
#ifndef __APPLE__
# define ZEND_MM_FD -1
#else
+# include <mach/vm_statistics.h>
/* Mac allows to track anonymous page via vmmap per TAG id.
* user land applications are allowed to take from 240 to 255.
*/
-# define ZEND_MM_FD (250u << 24u)
+# define ZEND_MM_FD VM_MAKE_TAG(250U)
#endif
#ifndef ZEND_MM_STAT