Avoid a deadlock when waiting for pending finalizers.
commit698a0b1b7f96e05813baead61b23c012962c6637
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:34:18 +0000 (18 17:34 -0300)
tree8e51794bced1c6085da7a1ba75201f17f966717b
parent5e727c96e6dc5d3fa082103e76172c4ffdbacca2
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