Don't try to join threads coming from foreign callbacks.
commit76a0e25462fdd8cd691cdcfe8606babd6b86e07c
authorStas Boukarev <stassats@gmail.com>
Thu, 7 Jan 2016 21:17:52 +0000 (8 00:17 +0300)
committerStas Boukarev <stassats@gmail.com>
Thu, 7 Jan 2016 21:19:20 +0000 (8 00:19 +0300)
tree0a18225064294b4d19bb7605c40b07f334d29710
parentf7d76e538e5770bf840aa4aeae0edc09aee18028
Don't try to join threads coming from foreign callbacks.

detach_os_thread calls undo_init_new_thread, which schedules the
thread for a postmortem, which involves pthread_join on some
platforms.
Remove schedule_thread_post_mortem from undo_init_new_thread and call
it only from new_thread_trampoline.
src/runtime/thread.c