2009-12-10 Mark Probst <mark.probst@gmail.com>
authorMark Probst <mark.probst@gmail.com>
Thu, 10 Dec 2009 21:25:59 +0000 (21:25 -0000)
committerMark Probst <mark.probst@gmail.com>
Thu, 10 Dec 2009 21:25:59 +0000 (21:25 -0000)
commit125a0477eac46dd92e3838d934775a3a1e9a2485
tree18f120b88ab37f62e926ca09d3d1393c7c43b885
parenta9262506b709f6ae3bd7af4d746a16e9564df43d
2009-12-10  Mark Probst  <mark.probst@gmail.com>

* domain.c, domain-internals.h: New function mono_domain_unset().

* appdomain.c (unload_thread_main): Detach the thread again at the
end.

* threads.c: When a thread exists or is detached, unset its domain
so that it's NULL when, for example, a pthread destructor runs.

* sgen-gc.c: Assert that there is no domain set after a thread is
done.

svn path=/trunk/mono/; revision=148065
mono/metadata/ChangeLog
mono/metadata/appdomain.c
mono/metadata/domain-internals.h
mono/metadata/domain.c
mono/metadata/sgen-gc.c
mono/metadata/threads.c