com php-src: Fixed typo that might cause serious bugs in MM. May be it was the reason of bug #70392 (SIGSEGV during PHP shutdown).: Zend/zend_alloc.c

From: Date: Tue, 08 Sep 2015 14:22:26 +0000
Subject: com php-src: Fixed typo that might cause serious bugs in MM. May be it was the reason of bug #70392 (SIGSEGV during PHP shutdown).: Zend/zend_alloc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88957@lists.php.net to get a copy of this message
Commit: aa3fd8c849dc9d05ff1dcd9e21ca63b69cda8f61 Author: Dmitry Stogov <dmitry@zend.com> Tue, 8 Sep 2015 17:22:26 +0300 Parents: bfab74d574ab8099b3e253a7720bdbc06efd4f7b Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=aa3fd8c849dc9d05ff1dcd9e21ca63b69cda8f61 Log: Fixed typo that might cause serious bugs in MM. May be it was the reason of bug #70392 (SIGSEGV during PHP shutdown). Bugs: https://bugs.php.net/70392 Changed paths: M Zend/zend_alloc.c Diff: diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 9e7f5d1..05a53ba 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -182,7 +182,7 @@ typedef zend_mm_bitset zend_mm_page_map[ZEND_MM_PAGE_MAP_LEN]; /* 64B */ #define ZEND_MM_LRUN(count) (ZEND_MM_IS_LRUN | ((count) << ZEND_MM_LRUN_PAGES_OFFSET)) #define ZEND_MM_SRUN(bin_num) (ZEND_MM_IS_SRUN | ((bin_num) << ZEND_MM_SRUN_BIN_NUM_OFFSET)) #define ZEND_MM_SRUN_EX(bin_num, count) (ZEND_MM_IS_SRUN | ((bin_num) << ZEND_MM_SRUN_BIN_NUM_OFFSET) | ((count) << ZEND_MM_SRUN_FREE_COUNTER_OFFSET)) -#define ZEND_MM_NRUN(bin_num, offset) (ZEND_MM_IS_SRUN | ZEND_MM_IS_SRUN | ((bin_num) << ZEND_MM_SRUN_BIN_NUM_OFFSET) | ((offset) << ZEND_MM_NRUN_OFFSET_OFFSET)) +#define ZEND_MM_NRUN(bin_num, offset) (ZEND_MM_IS_SRUN | ZEND_MM_IS_LRUN | ((bin_num) << ZEND_MM_SRUN_BIN_NUM_OFFSET) | ((offset) << ZEND_MM_NRUN_OFFSET_OFFSET)) #define ZEND_MM_BINS 30

« previous php.cvs (#88957) next »