[coop] Make coop suspend crashes have names that can be correlated to an Apple crash...
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 24 Sep 2015 21:02:42 +0000 (17:02 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 24 Sep 2015 21:59:13 +0000 (17:59 -0400)
commitfd00eb1cff79fba7b8bedfa354fb0c7845c308ea
tree2d2c1a24254d74ce1efef697357e6b5f79193707
parent3f3df2694529b6fc3b88bf9c83c76d792ff47428
[coop] Make coop suspend crashes have names that can be correlated to an Apple crash dump.

Use pthread_setname_np on attach to ensure every thread has a name that Apple's crash dump recognize.

The use pthread_getname_np when doing a thread dump to ensure we get the current thread name.

This cosmetic change will allow us to use Apple crash dumps when troubleshooting suspend issues.
mono/utils/mono-threads-coop.c
mono/utils/mono-threads.c