com php-src: Initialize bitset before processing the seconf BB (we skip the first one): ext/opcache/Optimizer/block_pass.c

From: Date: Thu, 10 Dec 2015 08:29:53 +0000
Subject: com php-src: Initialize bitset before processing the seconf BB (we skip the first one): ext/opcache/Optimizer/block_pass.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90201@lists.php.net to get a copy of this message
Commit: 3b5c844757e08cf16c1fa5d5e29743045ec5c1a1 Author: Dmitry Stogov <dmitry@zend.com> Thu, 10 Dec 2015 11:29:53 +0300 Parents: 770ba81071503037a837f7e83eae6000e1170875 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3b5c844757e08cf16c1fa5d5e29743045ec5c1a1 Log: Initialize bitset before processing the seconf BB (we skip the first one) Changed paths: M ext/opcache/Optimizer/block_pass.c Diff: diff --git a/ext/opcache/Optimizer/block_pass.c b/ext/opcache/Optimizer/block_pass.c index cddfb8b..a61ca9c 100644 --- a/ext/opcache/Optimizer/block_pass.c +++ b/ext/opcache/Optimizer/block_pass.c @@ -1483,6 +1483,7 @@ static void zend_t_usage(zend_cfg *cfg, zend_op_array *op_array, zend_bitset use bitset_len = zend_bitset_len(op_array->last_var + op_array->T); defined_here = zend_arena_alloc(&ctx->arena, bitset_len * ZEND_BITSET_ELM_SIZE); + zend_bitset_clear(defined_here, bitset_len); for (n = 1; n < cfg->blocks_count; n++) { block = cfg->blocks + n;

« previous php.cvs (#90201) next »