Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jun 2011 19:15:24 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r223369 - head/lib/libc/stdlib
Message-ID:  <201106211915.p5LJFOFN013116@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106211915.p5LJFOFN013116>