Skip to content

Commit f51fbf9

Browse files
authored
zend allocators adding __declspec allocator for windows. (#9253)
does not affect the performance, however making those custom calls more meaningful for Event Tracing/Visual Studio.
1 parent bd3cd6a commit f51fbf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_portability.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ char *alloca();
215215
#if ZEND_GCC_VERSION >= 2096 || __has_attribute(__malloc__)
216216
# define ZEND_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
217217
#elif defined(ZEND_WIN32)
218-
# define ZEND_ATTRIBUTE_MALLOC __declspec(restrict)
218+
# define ZEND_ATTRIBUTE_MALLOC __declspec(allocator) __declspec(restrict)
219219
#else
220220
# define ZEND_ATTRIBUTE_MALLOC
221221
#endif

0 commit comments

Comments
 (0)