17. aug. 2010 22.30 skrev Chinnu <[email protected]>:
> Hi,
>
> I have a quick question about the Thread Local Storage allocation in
> V8.
>
> While the 'CreateThreadLocalKey()' function in platform.h is being
> invoked few times, the corresponding 'DeleteThreadLocalKey' is never
> being invoked. Shouldn't the index allocated by TlsAlloc in the former
> be freed later (after it's no longer required) by TlsFree? Or, is it
> the responsibility of the main application (which is running V8
> engine) to free this at the end?

There's no facility for removing threads from V8.  Once V8 has heard
of a thread it keeps the local key and some storage alive for ever.
The OS clears it up when the process exits.

I think it would be possible to fix this, but it hasn't been a high
priority until now.

-- 
Erik Corry, Software Engineer
Google Denmark ApS - Frederiksborggade 20B, 1 sal,
1360 København K - Denmark - CVR nr. 28 86 69 84

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

Reply via email to