jemalloc/jemalloc-armv5-force-atomic.patch

14 lines
553 B
Diff
Raw Normal View History

2012-04-21 15:25:28 +00:00
--- jemalloc-2.2.5/include/jemalloc/internal/atomic.h.orig 2012-04-21 10:50:06.000000000 -0400
+++ jemalloc-2.2.5/include/jemalloc/internal/atomic.h 2012-04-21 10:50:21.000000000 -0400
@@ -105,7 +105,9 @@
2012-04-21 05:29:51 +00:00
/******************************************************************************/
/* 32-bit operations. */
-#ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
2012-04-21 15:25:28 +00:00
+#if ( defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) \
+ || defined(__ARM_ARCH_5T__) \
+ || defined(__ARM_ARCH_5TE__) )
2012-04-21 05:29:51 +00:00
JEMALLOC_INLINE uint32_t
atomic_add_uint32(uint32_t *p, uint32_t x)
{