mirror of
https://github.com/php/php-src.git
synced 2026-04-03 22:22:18 +02:00
Merge branch 'PHP-7.0'
* PHP-7.0: if there's no JIT support, no RINIT is really needed Disable huge pages in the Zend allocator by default As per the discussion on internals, this is an expert feature that needs special system-level configuration and care.
This commit is contained in:
@@ -201,7 +201,7 @@ typedef struct _zend_mm_huge_list zend_mm_huge_list;
|
||||
#endif
|
||||
|
||||
#ifdef MAP_HUGETLB
|
||||
int zend_mm_use_huge_pages = 1;
|
||||
int zend_mm_use_huge_pages = 0;
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -2654,8 +2654,8 @@ static void alloc_globals_ctor(zend_alloc_globals *alloc_globals)
|
||||
#endif
|
||||
#ifdef MAP_HUGETLB
|
||||
tmp = getenv("USE_ZEND_ALLOC_HUGE_PAGES");
|
||||
if (tmp && !zend_atoi(tmp, 0)) {
|
||||
zend_mm_use_huge_pages = 0;
|
||||
if (tmp && zend_atoi(tmp, 0)) {
|
||||
zend_mm_use_huge_pages = 1;
|
||||
}
|
||||
#endif
|
||||
ZEND_TSRMLS_CACHE_UPDATE();
|
||||
|
||||
@@ -212,18 +212,18 @@ static PHP_MSHUTDOWN_FUNCTION(pcre)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
#ifdef PCRE_STUDY_JIT_COMPILE
|
||||
/* {{{ PHP_RINIT_FUNCTION(pcre) */
|
||||
static PHP_RINIT_FUNCTION(pcre)
|
||||
{
|
||||
#ifdef PCRE_STUDY_JIT_COMPILE
|
||||
if (PCRE_G(jit)) {
|
||||
jit_stack = pcre_jit_stack_alloc(PCRE_JIT_STACK_MIN_SIZE,PCRE_JIT_STACK_MAX_SIZE);
|
||||
}
|
||||
#endif
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
/* }}} */
|
||||
#endif
|
||||
|
||||
/* {{{ static pcre_clean_cache */
|
||||
static int pcre_clean_cache(zval *data, void *arg)
|
||||
@@ -2232,7 +2232,11 @@ zend_module_entry pcre_module_entry = {
|
||||
pcre_functions,
|
||||
PHP_MINIT(pcre),
|
||||
PHP_MSHUTDOWN(pcre),
|
||||
#ifdef PCRE_STUDY_JIT_COMPILE
|
||||
PHP_RINIT(pcre),
|
||||
#else
|
||||
NULL
|
||||
#endif
|
||||
NULL,
|
||||
PHP_MINFO(pcre),
|
||||
PHP_PCRE_VERSION,
|
||||
|
||||
Reference in New Issue
Block a user