Skip to content

Commit 50947c3

Browse files
shqkingdstogov
authored andcommitted
Fix one bug in macro IF_GC_MAY_NOT_LEAK
Instruction is misused. 'dword', i.e. 32 bits, are loaded from memory. Hence, 'ldr' should be used rather than 'ldrh'.
1 parent cf66657 commit 50947c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_arm64.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ static void* dasm_labels[zend_lb_MAX];
933933
|.endmacro
934934

935935
|.macro IF_GC_MAY_NOT_LEAK, ptr, label, tmp_reg1, tmp_reg2
936-
| ldrh tmp_reg1, [ptr, #4]
936+
| ldr tmp_reg1, [ptr, #4]
937937
| LOAD_32BIT_VAL tmp_reg2, (GC_INFO_MASK | (GC_NOT_COLLECTABLE << GC_FLAGS_SHIFT))
938938
| tst tmp_reg1, tmp_reg2
939939
| bne label

0 commit comments

Comments
 (0)