From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 24 09:33:21 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9834D16A4CE for ; Wed, 24 Dec 2003 09:33:21 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F96543D45 for ; Wed, 24 Dec 2003 09:33:20 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id hBOHXJiw016714; Wed, 24 Dec 2003 12:33:19 -0500 (EST) Date: Wed, 24 Dec 2003 12:33:19 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Alexander Kabaev In-Reply-To: <20031224121737.0d863165@kanpc.gte.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org cc: Alfred Perlstein Subject: Re: support for __thread X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2003 17:33:21 -0000 On Wed, 24 Dec 2003, Alexander Kabaev wrote: > Sorry for late response, but ... > > On Sun, 21 Dec 2003 17:31:03 -0500 (EST) > Daniel Eischen wrote: > > > > > libkse is ready to add support for it but I believe there's > > some additional work to be done in rtld-elf first. > > libkse in current shape is unable to support GNU TLS model, which is > what our system GCC is configured to use by default. While I can Right, I think we just need to add one more dereference if that is what you mean. > certainly switch it to less optimal in some cases model defined by Please do :) > Sun, I think maintaining binary compat in TLS are is an important > feature given the fact that precompiled linux-only object files are > getting more and more popular. Being binary compatible will give is at > least a change to link Linux object file into native FreeBSD binary. We don't want to have a separate LDT for each thread in libkse; it adds overhead, limits number of threads, and isn't needed. Also, while you may be able to have binary compat for TLS, you will not for the rest of the threading system so any advantage in that regard is marginal. -- Dan Eischen