com php-src: We don't have to use "persistent" heap with PHP-7 HashTable(s).: ext/opcache/zend_shared_alloc.c

From: Date: Thu, 29 Jun 2017 06:24:07 +0000
Subject: com php-src: We don't have to use "persistent" heap with PHP-7 HashTable(s).: ext/opcache/zend_shared_alloc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98243@lists.php.net to get a copy of this message
Commit: c23ffaa211947c5971b0c64192c7bb79016265d3 Author: Dmitry Stogov <dmitry@zend.com> Thu, 29 Jun 2017 09:24:07 +0300 Parents: d79305fb7aa62ed18733e03cda8fb57386606e34 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c23ffaa211947c5971b0c64192c7bb79016265d3 Log: We don't have to use "persistent" heap with PHP-7 HashTable(s). Changed paths: M ext/opcache/zend_shared_alloc.c Diff: diff --git a/ext/opcache/zend_shared_alloc.c b/ext/opcache/zend_shared_alloc.c index 4f00574..91496b1 100644 --- a/ext/opcache/zend_shared_alloc.c +++ b/ext/opcache/zend_shared_alloc.c @@ -426,14 +426,8 @@ void zend_shared_alloc_unlock(void) void zend_shared_alloc_init_xlat_table(void) { - - /* Prepare translation table - * - * Make it persistent so that it uses malloc() and allocated blocks - * won't be taken from space which is freed by efree in memdup. - * Otherwise it leads to false matches in memdup check. - */ - zend_hash_init(&ZCG(xlat_table), 128, NULL, NULL, 1); + /* Prepare translation table */ + zend_hash_init(&ZCG(xlat_table), 128, NULL, NULL, 0); } void zend_shared_alloc_destroy_xlat_table(void)

« previous php.cvs (#98243) next »