Files
semi-libc/src/thread
Rich Felker debbddf7c8 fix regression in pthread_exit
commit d26e0774a5 moved the detach state
transition at exit before the thread list lock was taken. this
inadvertently allowed pthread_join to race to take the thread list
lock first, and proceed with unmapping of the exiting thread's memory.

we could fix this by just revering the offending commit and instead
performing __vm_wait unconditionally before taking the thread list
lock, but that may be costly. instead, bring back the old DT_EXITING
vs DT_EXITED state distinction that was removed in commit
8f11e6127f, and don't transition to
DT_EXITED (a value of 0, which is what pthread_join waits for) until
after the lock has been taken.
2020-11-20 10:43:20 -05:00
..
2020-08-30 21:37:12 -04:00
2018-09-12 14:34:31 -04:00
2018-09-12 14:34:31 -04:00
2018-09-12 14:34:31 -04:00
2018-09-12 14:34:31 -04:00
2019-06-14 17:13:05 -04:00
2014-09-06 22:07:22 -04:00
2014-09-06 22:07:22 -04:00
2014-09-06 22:07:22 -04:00
2018-09-12 14:34:36 -04:00
2016-10-20 01:48:27 -04:00
2011-03-04 00:45:59 -05:00
2011-03-04 00:45:59 -05:00
2011-03-04 00:45:59 -05:00
2011-04-17 11:43:03 -04:00