Avoid reinitailization of ZTS cache pointer. Initialize it once in TSRM.c

This commit is contained in:
Dmitry Stogov 2019-03-12 17:35:50 +03:00
parent 7139c381f1
commit 04b67bac32
12 changed files with 15 additions and 15 deletions

View file

@ -2723,7 +2723,6 @@ static void alloc_globals_ctor(zend_alloc_globals *alloc_globals)
if (tmp && zend_atoi(tmp, 0)) {
zend_mm_use_huge_pages = 1;
}
ZEND_TSRMLS_CACHE_UPDATE();
alloc_globals->mm_heap = zend_mm_init();
}