diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-04-16 13:11:54 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-04-16 13:11:54 +0300 |
commit | 05232cc810b39ff6f5a0307119bd76a548fe34be (patch) | |
tree | a9472d95840a65954cde301e94936763216fd50e /Zend/zend_alloc.c | |
parent | 5275e5560bb186bc3950a0dbf15fe0e54ee4c6ec (diff) | |
download | php-git-05232cc810b39ff6f5a0307119bd76a548fe34be.tar.gz |
Revert "Changed zend_smart_str allocation granularity to do the better job together with Zend MM and avoid useless calls to erealloc()." That commit significantly increased the code size because of intensive inlining and more expensive reallocation code.
This reverts commit 5275e5560bb186bc3950a0dbf15fe0e54ee4c6ec.
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r-- | Zend/zend_alloc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 16fd42e80f..6701ca4902 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -287,6 +287,16 @@ struct _zend_mm_bin { char bytes[ZEND_MM_PAGE_SIZE * 8]; }; +#if ZEND_DEBUG +typedef struct _zend_mm_debug_info { + size_t size; + const char *filename; + const char *orig_filename; + uint lineno; + uint orig_lineno; +} zend_mm_debug_info; +#endif + struct _zend_mm_free_slot { zend_mm_free_slot *next_free_slot; }; |