Avoid a deadlock when waiting for pending finalizers.
commit7cf8fd69e7a2411159e60c46e56a4d47292a8422
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 18 May 2012 20:06:32 +0000 (18 17:06 -0300)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 18 May 2012 20:10:35 +0000 (18 17:10 -0300)
tree70fd7fc3f7a8f3ab19100c166c927af24f11e600
parent0ed11d795c5f886fd82054805344a2988c5ef453
Avoid a deadlock when waiting for pending finalizers.

* gc.c: If the finalizer thread is delay started
we must ensure that we don't block waiting for finalizers
until it is live.

This is required as the delayed start could happen in
the blocked thread - and deadlock us.
mono/metadata/gc.c