Skip to content

Commit 8d773a7

Browse files
committed
Properly cleanup in case of abort because too many functions in single trace.
1 parent d66a6ba commit 8d773a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,7 @@ static zend_ssa *zend_jit_trace_build_tssa(zend_jit_trace_rec *trace_buffer, uin
10091009
/* pass */
10101010
} else if (num_op_arrays == ZEND_JIT_TRACE_MAX_FUNCS) {
10111011
/* Too many functions in single trace */
1012+
*num_op_arrays_ptr = num_op_arrays;
10121013
return NULL;
10131014
} else {
10141015
/* Remember op_array to cleanup */
@@ -1026,6 +1027,7 @@ static zend_ssa *zend_jit_trace_build_tssa(zend_jit_trace_rec *trace_buffer, uin
10261027
/* pass */
10271028
} else if (num_op_arrays == ZEND_JIT_TRACE_MAX_FUNCS) {
10281029
/* Too many functions in single trace */
1030+
*num_op_arrays_ptr = num_op_arrays;
10291031
return NULL;
10301032
} else {
10311033
/* Remember op_array to cleanup */

0 commit comments

Comments
 (0)