Skip to content

Commit 875408c

Browse files
committed
Provide script to TSSA build in tracing JIT
1 parent 8376904 commit 875408c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4117,6 +4117,13 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
41174117

41184118
checkpoint = zend_arena_checkpoint(CG(arena));
41194119

4120+
zend_accel_hash_entry *accel_h_entry = zend_accel_hash_find_entry(&ZCSG(hash), trace_buffer->op_array->filename);
4121+
if (accel_h_entry) {
4122+
zend_persistent_script *persistent_script = (zend_persistent_script *) accel_h_entry->data;
4123+
ZEND_ASSERT(persistent_script);
4124+
script = &persistent_script->script;
4125+
}
4126+
41204127
ssa = zend_jit_trace_build_tssa(trace_buffer, parent_trace, exit_num, script, op_arrays, &num_op_arrays);
41214128

41224129
if (!ssa) {

0 commit comments

Comments
 (0)