Skip to content

Commit eb6d496

Browse files
committed
Fixed reference-counting
1 parent edf5c19 commit eb6d496

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12015,6 +12015,13 @@ static int zend_jit_fetch_dim(dasm_State **Dst,
1201512015
}
1201612016
}
1201712017

12018+
#ifdef ZEND_JIT_USE_RC_INFERENCE
12019+
if ((opline->op2_type & (IS_TMP_VAR|IS_VAR)) && (op1_info & (MAY_BE_UNDEF|MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_ARRAY|MAY_BE_OBJECT))) {
12020+
/* ASSIGN_DIM may increase refcount of the key */
12021+
op2_info |= MAY_BE_RCN;
12022+
}
12023+
#endif
12024+
1201812025
|8:
1201912026
| FREE_OP opline->op2_type, opline->op2, op2_info, 0, opline
1202012027

0 commit comments

Comments
 (0)