Skip to content

Commit

Permalink
build: Use memory barriers for ARM
Browse files Browse the repository at this point in the history
ARM has much weaker memory ordering guarantees than x86 by default, and
needs the memory barriers.  A similar fix exists in the Skia codebase.
Fix suggested by Nathan Froyd.

Fixes: FDO #90302

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Acked-by: "Henry (Yu) Song" <henry.song@samsung.com>
  • Loading branch information
Bryce Harrington committed Oct 15, 2015
1 parent 25a5582 commit 7cc77d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/aclocal.cairo.m4
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ AC_DEFUN([CAIRO_CHECK_ATOMIC_OP_NEEDS_MEMORY_BARRIER],
case $host_cpu in
i?86) cairo_cv_atomic_op_needs_memory_barrier="no" ;;
x86_64) cairo_cv_atomic_op_needs_memory_barrier="no" ;;
arm*) cairo_cv_atomic_op_needs_memory_barrier="no" ;;
arm*) cairo_cv_atomic_op_needs_memory_barrier="yes" ;;
*) cairo_cv_atomic_op_needs_memory_barrier="yes" ;;
esac
])
Expand Down

0 comments on commit 7cc77d1

Please sign in to comment.