Revert "Merge pull request #464 from gregoryyoung/master"
commit47dd377f8587b466475ac5a6cf548f49b9394d0d
authorRodrigo Kumpera <kumpera@gmail.com>
Thu, 1 Nov 2012 21:43:25 +0000 (1 17:43 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 1 Nov 2012 21:49:25 +0000 (1 17:49 -0400)
tree0aa87c9893eded512111bd96ee5c4aa1c6dbc10d
parent6aed7e60aa6eb71724b592eb6d912c98f799564a
Revert "Merge pull request #464 from gregoryyoung/master"

This commit causes deadlock in the tpool backend in the following way:

thread 1:
socket_io_add locks io_lock
tp_poll_modify waits on new_sem

thread 2:
tp_poll_wait tries to lock io_lock

tp_poll_wait is the responsible to post to new_sem, which it can't do since it's
blocked on io_lock, held by a thread waiting on new_sem.

This reverts commit 11286da0ac2e2bab7b2d8ab04b9f6a4da4e12131, reversing
changes made to 94bfdf21e6f06424ad96980a27c35c99ba42b1d3.
mono/metadata/threadpool.c