[jemalloc] Improve ARM patch

Peter Robinson pbrobinson at fedoraproject.org
Sat Apr 21 15:25:37 UTC 2012


commit dc286617e7b272ccb3bdf0ab72e14dbc92dd6d48
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Sat Apr 21 16:25:28 2012 +0100

    Improve ARM patch

 jemalloc-armv5-force-atomic.patch |   10 ++++++----
 jemalloc.spec                     |    5 ++++-
 2 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/jemalloc-armv5-force-atomic.patch b/jemalloc-armv5-force-atomic.patch
index 5674228..7234d26 100644
--- a/jemalloc-armv5-force-atomic.patch
+++ b/jemalloc-armv5-force-atomic.patch
@@ -1,11 +1,13 @@
---- jemalloc-2.2.5/include/jemalloc/internal/atomic.h.orig	2012-04-21 00:24:23.000000000 -0400
-+++ jemalloc-2.2.5/include/jemalloc/internal/atomic.h	2012-04-21 00:50:41.000000000 -0400
-@@ -105,7 +105,7 @@
+--- 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 @@
  
  /******************************************************************************/
  /* 32-bit operations. */
 -#ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
-+#if ( defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) || defined(__ARM_ARCH_5T__) )
++#if ( defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) \
++   || defined(__ARM_ARCH_5T__) \
++   || defined(__ARM_ARCH_5TE__) )
  JEMALLOC_INLINE uint32_t
  atomic_add_uint32(uint32_t *p, uint32_t x)
  {
diff --git a/jemalloc.spec b/jemalloc.spec
index 513e588..dd9d5e7 100644
--- a/jemalloc.spec
+++ b/jemalloc.spec
@@ -1,7 +1,7 @@
 Name:           jemalloc
 Version:        2.2.5
 
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        General-purpose scalable concurrent malloc implementation
 
 Group:          System Environment/Libraries
@@ -74,6 +74,9 @@ rm -rf %{buildroot}
 %postun -p /sbin/ldconfig
 
 %changelog
+* Sat Apr 21 2012 Peter Robinson <pbrobinson at fedoraproject.org> - 2.2.5-5
+- Improve ARM patch
+
 * Fri Apr 20 2012 Dennis Gilmore <dennis at ausil.us> - 2.2.5-4
 - no attomics on armv5tel
 


More information about the scm-commits mailing list