Skip to content

Commit c23ffaa

Browse files
committed
We don't have to use "persistent" heap with PHP-7 HashTable(s).
1 parent d79305f commit c23ffaa

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

ext/opcache/zend_shared_alloc.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -426,14 +426,8 @@ void zend_shared_alloc_unlock(void)
426426

427427
void zend_shared_alloc_init_xlat_table(void)
428428
{
429-
430-
/* Prepare translation table
431-
*
432-
* Make it persistent so that it uses malloc() and allocated blocks
433-
* won't be taken from space which is freed by efree in memdup.
434-
* Otherwise it leads to false matches in memdup check.
435-
*/
436-
zend_hash_init(&ZCG(xlat_table), 128, NULL, NULL, 1);
429+
/* Prepare translation table */
430+
zend_hash_init(&ZCG(xlat_table), 128, NULL, NULL, 0);
437431
}
438432

439433
void zend_shared_alloc_destroy_xlat_table(void)

0 commit comments

Comments
 (0)