summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2020-07-28 23:31:58 +0300
committerDmitry Stogov <dmitry@zend.com>2020-07-28 23:31:58 +0300
commit99ee73e6a94c847cee7130928cc3b6acddece904 (patch)
tree483ac6f00d5716a33d415cde94d8fe3a4f734ea1
parent73e070a614f90c87a15799693f2bddc3d5842545 (diff)
downloadphp-git-99ee73e6a94c847cee7130928cc3b6acddece904.tar.gz
Fixed incorrect reuse of exit_point
-rw-r--r--ext/opcache/jit/zend_jit_trace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c
index d894b50f18..6ef493e3ed 100644
--- a/ext/opcache/jit/zend_jit_trace.c
+++ b/ext/opcache/jit/zend_jit_trace.c
@@ -174,7 +174,8 @@ static uint32_t zend_jit_trace_get_exit_point(const zend_op *from_opline, const
&& memcmp(t->stack_map + t->exit_info[i].stack_offset, stack, stack_size * sizeof(zend_jit_trace_stack)) == 0)) {
stack_offset = t->exit_info[i].stack_offset;
if (t->exit_info[i].opline == to_opline
- && t->exit_info[i].flags == flags) {
+ && t->exit_info[i].flags == flags
+ && t->exit_info[i].stack_size == stack_size) {
return i;
}
}