]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM64: Fix write barrier in BC_USETS.
authorMike Pall <mike>
Sun, 24 Jun 2018 11:18:03 +0000 (13:18 +0200)
committerMike Pall <mike>
Sun, 24 Jun 2018 11:18:03 +0000 (13:18 +0200)
Contributed by Javier Guerra Giraldez.

src/vm_arm64.dasc

index c55794a68927701e28691ccb70c6807c38a04113..fb226e35decb6fd00a63ad68f83e8654b48066d7 100644 (file)
@@ -2780,7 +2780,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
     |2:  // Check if string is white and ensure upvalue is closed.
     |  ldrb TMP0w, UPVAL:CARG1->closed
     |    tst TMP1w, #LJ_GC_WHITES      // iswhite(str)
-    |  ccmp TMP0w, #0, #0, ne
+    |  ccmp TMP0w, #0, #4, ne
     |  beq <1
     |  // Crossed a write barrier. Move the barrier forward.
     |  mov CARG1, GL