From: David CARLIER Date: Sat, 13 Feb 2021 07:58:48 +0000 (+0000) Subject: Use VM_MAKE_TAG for macos memory tag X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b93ae601a892f870ce3677846fba84f6a5b0289;p=php Use VM_MAKE_TAG for macos memory tag In case Apple changes the meaning of the macro in the future. Closes GH-6687. --- 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 /* 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