r4410 - branches/2.0/varnish-cache/lib/libjemalloc
tfheen at projects.linpro.no
tfheen at projects.linpro.no
Wed Dec 16 12:30:42 CET 2009
Author: tfheen
Date: 2009-12-16 12:30:42 +0100 (Wed, 16 Dec 2009)
New Revision: 4410
Modified:
branches/2.0/varnish-cache/lib/libjemalloc/jemalloc_linux.c
Log:
Merge r4387: jemalloc portability fixes for sparc and s390
Modified: branches/2.0/varnish-cache/lib/libjemalloc/jemalloc_linux.c
===================================================================
--- branches/2.0/varnish-cache/lib/libjemalloc/jemalloc_linux.c 2009-12-16 11:21:16 UTC (rev 4409)
+++ branches/2.0/varnish-cache/lib/libjemalloc/jemalloc_linux.c 2009-12-16 11:30:42 UTC (rev 4410)
@@ -243,7 +243,7 @@
# define SIZEOF_PTR_2POW 3
# define NO_TLS
#endif
-#ifdef __sparc64__
+#ifdef __sparc__
# define PAGESIZE_2POW 13
# define QUANTUM_2POW 4
# define SIZEOF_PTR_2POW 3
@@ -272,6 +272,11 @@
# define QUANTUM_2POW 4
# define SIZEOF_PTR_2POW 2
#endif
+#ifdef __s390x__
+# define PAGESIZE_2POW 12
+# define QUANTUM_2POW 4
+# define SIZEOF_PTR_2POW 3
+#endif
#define QUANTUM ((size_t)(1U << QUANTUM_2POW))
#define QUANTUM_MASK (QUANTUM - 1)
More information about the varnish-commit
mailing list