This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: libgcj and the NPTL posix threads implementation


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]