Fiz a domain unload race regarding finalizable objects.
commit969f4f3c19ebc2b50b8f697ec6a0106937bad9b4
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 4 May 2012 20:16:49 +0000 (4 17:16 -0300)
committerRodrigo Kumpera <kumpera@gmail.com>
Mon, 7 May 2012 15:19:39 +0000 (7 12:19 -0300)
tree0084756d2eca02ac735dd7651bfa50ea67bb0d4f
parent80801f6d22ffb03982a63dbed786afadac7e685b
Fiz a domain unload race regarding finalizable objects.

* sgen-gc.c (mono_gc_clear_domain): It's possible to have a finalizable object
survive mono_domain_finalize and leak into mono_domain_free, so we make sure this
won't crash by removing from the fin hashtable all objects that belong to the
doomed domain.
mono/metadata/sgen-gc.c