[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r10938: Use LINUX_HOST, not LINUX as
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r10938: Use LINUX_HOST, not LINUX as it's mo0re consistant. |
Date: |
Wed, 27 May 2009 16:18:02 -0600 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 10938
committer: address@hidden
branch nick: trunk
timestamp: Wed 2009-05-27 16:18:02 -0600
message:
Use LINUX_HOST, not LINUX as it's mo0re consistant.
modified:
libbase/jemalloc.c
=== modified file 'libbase/jemalloc.c'
--- a/libbase/jemalloc.c 2009-03-19 23:14:43 +0000
+++ b/libbase/jemalloc.c 2009-05-27 22:18:02 +0000
@@ -160,7 +160,7 @@
# define MALLOC_DSS
#endif
-#ifdef LINUX
+#ifdef LINUX_HOST
# define _GNU_SOURCE /* For mremap(2). */
# define issetugid() 0
# if 0 /* Enable in order to test decommit code on Linux. */
@@ -228,9 +228,9 @@
# define MALLOC_DECOMMIT
#endif /* end of WIN32 */
-#ifdef HAVE_PTHREADS
+// #ifdef HAVE_PTHREADS
# include <pthread.h>
-#endif
+// #endif
#ifndef WIN32
# include <sys/cdefs.h>
@@ -253,7 +253,7 @@
# ifndef SIZE_T_MAX
# define SIZE_T_MAX SIZE_MAX
# endif
-# if defined(DARWIN) || defined(LINUX)
+# if defined(DARWIN) || defined(LINUX_HOST)
# define _pthread_self pthread_self
# define _pthread_mutex_init pthread_mutex_init
# define _pthread_mutex_trylock pthread_mutex_trylock
@@ -533,7 +533,7 @@
/* No init lock for Windows. */
#elif defined(DARWIN)
static malloc_mutex_t init_lock = {OS_SPINLOCK_INIT};
-#elif defined(LINUX)
+#elif defined(LINUX_HOST)
static malloc_mutex_t init_lock = PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP;
#elif defined(USE_JEMALLOC)
static malloc_mutex_t init_lock = PTHREAD_MUTEX_INITIALIZER;
@@ -1027,7 +1027,7 @@
= "A10n2F"
#elif (defined(DARWIN))
= "AP10n"
-#elif (defined(LINUX))
+#elif (defined(LINUX_HOST))
= "A10n2F"
#endif
;
@@ -1209,7 +1209,7 @@
return (true);
#elif defined(DARWIN)
mutex->lock = OS_SPINLOCK_INIT;
-#elif defined(LINUX)
+#elif defined(LINUX_HOST)
pthread_mutexattr_t attr;
if (pthread_mutexattr_init(&attr) != 0)
return (true);
@@ -1271,7 +1271,7 @@
return (true);
#elif defined(DARWIN)
lock->lock = OS_SPINLOCK_INIT;
-#elif defined(LINUX)
+#elif defined(LINUX_HOST)
pthread_mutexattr_t attr;
if (pthread_mutexattr_init(&attr) != 0)
return (true);
@@ -4686,7 +4686,7 @@
return (ret);
}
-#elif (defined(LINUX))
+#elif (defined(LINUX_HOST))
#include <fcntl.h>
static inline unsigned
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r10938: Use LINUX_HOST, not LINUX as it's mo0re consistant.,
rob <=