Re: [Gc] Calling GC_pthread_create' from a pthread key destructor
ivmai at mail.ru
Wed May 11 00:50:34 PDT 2011
Fixed. Test case added.
Note that key thread destructor is invoked after the thread is unregistered so a manual register/unregistered is required to call GC functions inside.
>Ivan Maidanski <ivmai at mail.ru> writes:
>>> pthread_setspecific (key, GC_STRDUP ("hello, world"));
>> Just one note. Are you aware that this code is equivalent (since TLS is not traced by GC) to:
>> (void)GC_STRDUP ("hello, world");
>> pthread_setspecific (key, <some_number>);
>Yes. The only point of this statement is to stress the GC and associate
>an initial value with the key (otherwise its destructor is never
More information about the Gc