This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: libgcj and the NPTL posix threads implementation
- From: Anthony Green <green at redhat dot com>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: "Boehm, Hans" <hans dot boehm at hp dot com>, "'Michael Koch'" <konqueror at gmx dot de>, java at gcc dot gnu dot org
- Date: Mon, 01 Mar 2004 14:24:33 -0800
- Subject: RE: libgcj and the NPTL posix threads implementation
- Organization: Red Hat, Inc.
- References: <Pine.LNX.4.44.0403011159570.11117-100000@ops2.one-point.com>
On Mon, 2004-03-01 at 13:08, Jeff Sturm wrote:
> Equivalently, you could do:
>
> static __thread _Jv_ThreadId_t me;
> ...
> return me;
>
> and set the variable during thread creation. It is more portable, and
> should work anywhere TLS is available.
This is neat. It didn't occur to me.
> But your version is more efficient
> within a DSO.
Why is this? It doesn't call any functions, does it?
Also, Hans, do you have plans to use GCC's new thread local extension in
the GC?
AG
--
Anthony Green <green@redhat.com>
Red Hat, Inc.