diff options
author | Julien Pauli <jpauli@php.net> | 2016-07-11 14:59:24 +0200 |
---|---|---|
committer | Julien Pauli <jpauli@php.net> | 2016-07-11 14:59:24 +0200 |
commit | 51e7415575e19b7819cdc24e691ccc58d599cc5c (patch) | |
tree | f187d119e1d648ae0420ec89a7c99c8045296990 /sapi | |
parent | 61a5e2ea746915ea42c22e889c0c644fde32d6ed (diff) | |
parent | fc2c301fe266c0a2e36ffb07fdc6aea6ca1916a3 (diff) | |
download | php-git-51e7415575e19b7819cdc24e691ccc58d599cc5c.tar.gz |
Merge branch 'PHP-7.0'
* PHP-7.0:
Remove needless zeroing of anonymously mmap'd memory
Remove needless zeroing of anonymously mmap'd memory
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/fpm/fpm/fpm_scoreboard.c | 1 | ||||
-rw-r--r-- | sapi/fpm/fpm/fpm_shm.c | 1 | ||||
-rw-r--r-- | sapi/litespeed/lsapilib.c | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/sapi/fpm/fpm/fpm_scoreboard.c b/sapi/fpm/fpm/fpm_scoreboard.c index dcc9e43f42..d7e4705abb 100644 --- a/sapi/fpm/fpm/fpm_scoreboard.c +++ b/sapi/fpm/fpm/fpm_scoreboard.c @@ -62,7 +62,6 @@ int fpm_scoreboard_init_main() /* {{{ */ if (!wp->scoreboard->procs[i]) { return -1; } - memset(wp->scoreboard->procs[i], 0, sizeof(struct fpm_scoreboard_proc_s)); } wp->scoreboard->pm = wp->config->pm; diff --git a/sapi/fpm/fpm/fpm_shm.c b/sapi/fpm/fpm/fpm_shm.c index 9226adf3d3..7986056793 100644 --- a/sapi/fpm/fpm/fpm_shm.c +++ b/sapi/fpm/fpm/fpm_shm.c @@ -35,7 +35,6 @@ void *fpm_shm_alloc(size_t size) /* {{{ */ return NULL; } - memset(mem, 0, size); fpm_shm_size += size; return mem; } diff --git a/sapi/litespeed/lsapilib.c b/sapi/litespeed/lsapilib.c index 41a1715d07..125edac9a8 100644 --- a/sapi/litespeed/lsapilib.c +++ b/sapi/litespeed/lsapilib.c @@ -2639,7 +2639,6 @@ static int lsapi_init_children_status() perror( "Anonymous mmap() failed" ); return -1; } - memset( pBuf, 0, size ); g_prefork_server->m_pChildrenStatus = (lsapi_child_status *)pBuf; g_prefork_server->m_pChildrenStatusCur = (lsapi_child_status *)pBuf; g_prefork_server->m_pChildrenStatusEnd = (lsapi_child_status *)pBuf + size / sizeof( lsapi_child_status ); |