From: Dmitry Stogov Date: Mon, 27 Jul 2020 13:37:15 +0000 (+0300) Subject: Properly cleanup in case of abort because too many functions in single trace. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d773a768f10313a8ea81a2af326b271019e28bb;p=php Properly cleanup in case of abort because too many functions in single trace. --- diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index 8af466c9e4..7ed9730320 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -1009,6 +1009,7 @@ static zend_ssa *zend_jit_trace_build_tssa(zend_jit_trace_rec *trace_buffer, uin /* pass */ } else if (num_op_arrays == ZEND_JIT_TRACE_MAX_FUNCS) { /* Too many functions in single trace */ + *num_op_arrays_ptr = num_op_arrays; return NULL; } else { /* Remember op_array to cleanup */ @@ -1026,6 +1027,7 @@ static zend_ssa *zend_jit_trace_build_tssa(zend_jit_trace_rec *trace_buffer, uin /* pass */ } else if (num_op_arrays == ZEND_JIT_TRACE_MAX_FUNCS) { /* Too many functions in single trace */ + *num_op_arrays_ptr = num_op_arrays; return NULL; } else { /* Remember op_array to cleanup */