com php-src: Adjust DFG allocation size: ext/opcache/Optimizer/ zend_ssa.c
| From: | Nikita Popov | Date: | Thu, 21 Apr 2016 21:49:37 +0000 |
| Subject: | com php-src: Adjust DFG allocation size: ext/opcache/Optimizer/ zend_ssa.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91820@lists.php.net to get a copy of this message | ||
Commit: 304e5ae3d6d00178d71bd345f0a6f98c948a5e19
Author: Nikita Popov <nikic@php.net> Thu, 21 Apr 2016 23:48:41 +0200
Parents: 55caaac73f993e11ff6c254f4db15f38b77cf943
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=304e5ae3d6d00178d71bd345f0a6f98c948a5e19
Log:
Adjust DFG allocation size
Now we need one set less...
Changed paths:
M ext/opcache/Optimizer/zend_ssa..c
Diff:
diff --git a/ext/opcache/Optimizer/zend_ssa.c b/ext/opcache/Optimizer/zend_ssa.c
index c70ecc5..b75ae5c 100644
--- a/ext/opcache/Optimizer/zend_ssa.c
+++ b/ext/opcache/Optimizer/zend_ssa.c
@@ -782,8 +782,8 @@ int zend_build_ssa(zend_arena **arena, const zend_op_array *op_array, uint32_t b
/* Compute Variable Liveness */
dfg.vars = op_array->last_var + op_array->T;
dfg.size = set_size = zend_bitset_len(dfg.vars);
- dfg.tmp = do_alloca((set_size * sizeof(zend_ulong)) * (blocks_count * 5 + 1), dfg_use_heap);
- memset(dfg.tmp, 0, (set_size * sizeof(zend_ulong)) * (blocks_count * 5 + 1));
+ dfg.tmp = do_alloca((set_size * sizeof(zend_ulong)) * (blocks_count * 4 + 1), dfg_use_heap);
+ memset(dfg.tmp, 0, (set_size * sizeof(zend_ulong)) * (blocks_count * 4 + 1));
dfg.def = dfg.tmp + set_size;
dfg.use = dfg.def + set_size * blocks_count;
dfg.in = dfg.use + set_size * blocks_count;