Status: New
Owner: ----

New issue 2474 by [email protected]: Investigate use of __thread for faster TLS on glibc
http://code.google.com/p/v8/issues/detail?id=2474

There are several projects (for example Node) who are working to minimize the impact of V8's Isolate TLS performance (which apparently shows up enough in profiling for them to worry about it).

Mac and Windows already have a "fast tls" implementation in V8, although I imagine this wasn't implemented for Linux because of glibc's additional TLS complexity (generations and multi-block storage). From the little I know about it, it seems like on those platforms (gcc + glibc) it could be much better to use a __thread variable (at least when static linking, in the case of Chrome and Node, for example). Ian Lance Taylor has a good highlevel description of the situation here:

http://www.airs.com/blog/archives/44

What would be involved in moving from GetThreadLocal(per_isolate_thread_data_key_) to a __thread variable on platforms where that is available?

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to