Explorar el Código

ARM64: Fix write barrier in BC_USETS.

Contributed by Javier Guerra Giraldez.
Mike Pall hace 7 años
padre
commit
c785131ca5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/vm_arm64.dasc

+ 1 - 1
src/vm_arm64.dasc

@@ -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