Skip to content

Commit c785131

Browse files
author
Mike Pall
committed
ARM64: Fix write barrier in BC_USETS.
Contributed by Javier Guerra Giraldez.
1 parent c3c54ce commit c785131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vm_arm64.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2780,7 +2780,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
27802780
|2: // Check if string is white and ensure upvalue is closed.
27812781
| ldrb TMP0w, UPVAL:CARG1->closed
27822782
| tst TMP1w, #LJ_GC_WHITES // iswhite(str)
2783-
| ccmp TMP0w, #0, #0, ne
2783+
| ccmp TMP0w, #0, #4, ne
27842784
| beq <1
27852785
| // Crossed a write barrier. Move the barrier forward.
27862786
| mov CARG1, GL

0 commit comments

Comments
 (0)