Skip to content

Commit 99ee73e

Browse files
committed
Fixed incorrect reuse of exit_point
1 parent 73e070a commit 99ee73e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ static uint32_t zend_jit_trace_get_exit_point(const zend_op *from_opline, const
174174
&& memcmp(t->stack_map + t->exit_info[i].stack_offset, stack, stack_size * sizeof(zend_jit_trace_stack)) == 0)) {
175175
stack_offset = t->exit_info[i].stack_offset;
176176
if (t->exit_info[i].opline == to_opline
177-
&& t->exit_info[i].flags == flags) {
177+
&& t->exit_info[i].flags == flags
178+
&& t->exit_info[i].stack_size == stack_size) {
178179
return i;
179180
}
180181
}

0 commit comments

Comments
 (0)