This is the mail archive of the
mailing list for the GCC project.
Re: emulating tls for systems without
Geoffrey Keating wrote:
+ ptr = malloc (obj->size + sizeof (void *));
+ if (ptr == NULL)
+ abort ();
and so on.
(The big benefit of the non-emulated TLS is that memory is allocated
on pthread_create(), so you know that either memory gets allocated or
the thread doesn't get created, and either way you don't get random
Indeed, that was exactly my general understanding.
Thanks a lot,