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] |
+ 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 crashes...)
Thanks a lot, Paolo.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |