summaryrefslogtreecommitdiff
path: root/ext/opcache/Optimizer/pass3.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-11-12 02:02:24 +0300
committerDmitry Stogov <dmitry@zend.com>2015-11-12 02:02:24 +0300
commit09aa68b2944430ee367a724cc865501d8c4b85b6 (patch)
tree142fdbd06b2f14379017cefbe1c4af3da13b6fe4 /ext/opcache/Optimizer/pass3.c
parentd1077f7a897d9267a0cad3d64663fd952dd1c6b2 (diff)
downloadphp-git-09aa68b2944430ee367a724cc865501d8c4b85b6.tar.gz
Break dependency between opcache and optimizer. Remove copatibility macros.
Diffstat (limited to 'ext/opcache/Optimizer/pass3.c')
-rw-r--r--ext/opcache/Optimizer/pass3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opcache/Optimizer/pass3.c b/ext/opcache/Optimizer/pass3.c
index 3e589df628..2a74717f10 100644
--- a/ext/opcache/Optimizer/pass3.c
+++ b/ext/opcache/Optimizer/pass3.c
@@ -63,7 +63,7 @@ void zend_optimizer_pass3(zend_op_array *op_array)
uint32_t opline_num = 0;
ALLOCA_FLAG(use_heap);
- jmp_hitlist = (uint32_t *)DO_ALLOCA(sizeof(uint32_t)*op_array->last);
+ jmp_hitlist = (uint32_t *)do_alloca(sizeof(uint32_t)*op_array->last, use_heap);
opline = op_array->opcodes;
while (opline < end) {
@@ -429,5 +429,5 @@ done_jmp_optimization:
opline++;
opline_num++;
}
- FREE_ALLOCA(jmp_hitlist);
+ free_alloca(jmp_hitlist, use_heap);
}