2003-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* jit/jit.c:
(mono_jit_cleanup): moved mono_runtime_cleanup call after the call to
mono_domain_finalize.
* mini/mini.c:
(mini_cleanup): moved mono_runtime_cleanup call after the call to
mono_domain_finalize.
(mini_method_compile): use mono_method_profile* if the the option is
enabled.
* metadata/gc.c:
(internal_domain_finalize): moved into mono_domain_finalize. No need
to create another thread because the finalizers will be run in the
finalizer thread.
(ves_icall_System_GC_WaitForPendingFinalizers): implemented.
(finalizer_notify): if shutting down, wait 2 seconds for the finalizers
to be run (MS does this too).
svn path=/trunk/mono/; revision=13733