svn commit: r223369 - head/lib/libc/stdlib
Marius Strobl
marius at FreeBSD.org
Tue Jun 21 19:15:24 UTC 2011
Author: marius
Date: Tue Jun 21 19:15:23 2011
New Revision: 223369
URL: http://svn.freebsd.org/changeset/base/223369
Log:
Change sparc64 to use the initial exec TLS model, too. This avoids random
assertion failures in _malloc_thread_cleanup().
Modified:
head/lib/libc/stdlib/malloc.c
Modified: head/lib/libc/stdlib/malloc.c
==============================================================================
--- head/lib/libc/stdlib/malloc.c Tue Jun 21 19:13:48 2011 (r223368)
+++ head/lib/libc/stdlib/malloc.c Tue Jun 21 19:15:23 2011 (r223369)
@@ -234,7 +234,7 @@ __FBSDID("$FreeBSD$");
#ifdef __sparc64__
# define LG_QUANTUM 4
# define LG_SIZEOF_PTR 3
-# define TLS_MODEL /* default */
+# define TLS_MODEL __attribute__((tls_model("initial-exec")))
#endif
#ifdef __amd64__
# define LG_QUANTUM 4
More information about the svn-src-all
mailing list