This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: emulating tls for systems without


Geoffrey Keating wrote:

+      ptr = malloc (obj->size + sizeof (void *));
+      if (ptr == NULL)
+       abort ();

and so on.

Ah, ah...


(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 crashes...)

Indeed, that was exactly my general understanding.


Thanks a lot,
Paolo.


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