libgcj and the NPTL posix threads implementation
Anthony Green
green@redhat.com
Mon Mar 1 22:24:00 GMT 2004
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.
More information about the Java
mailing list