Port dotnet/coreclr#5821 to Linux (dotnet/coreclr#9347)
authorFrederik Carlier <frederik.carlier@quamotion.mobi>
Sun, 5 Feb 2017 19:50:28 +0000 (20:50 +0100)
committerJan Kotas <jkotas@microsoft.com>
Sun, 5 Feb 2017 19:50:28 +0000 (11:50 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/e01f1e164e8704bdbcbb26442961d94db11d8152

src/coreclr/src/vm/arm64/asmhelpers.S

index 32eeb4e..0633005 100644 (file)
@@ -286,7 +286,7 @@ WRITE_BARRIER_END JIT_CheckedWriteBarrier
 //
 WRITE_BARRIER_ENTRY JIT_WriteBarrier
     dmb  ST
-    str  x15, [x14], 8
+    str  x15, [x14]
 
     // Branch to Exit if the reference is not in the Gen0 heap
     //
@@ -312,6 +312,7 @@ LOCAL_LABEL(UpdateCardTable):
     mov  x12, 0xFF 
     strb w12, [x15]
 LOCAL_LABEL(Exit):
+    add  x14, x14, 8
     ret  lr  
 WRITE_BARRIER_END JIT_WriteBarrier