[Mono-bugs] [Bug 38152][Min] New - profiling information is not dumped when program exits using System.Environment.Exit ()
Sat, 15 Feb 2003 17:16:51 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by firstname.lastname@example.org.
--- shadow/38152 Sat Feb 15 17:16:51 2003
+++ shadow/38152.tmp.12898 Sat Feb 15 17:16:51 2003
@@ -0,0 +1,26 @@
+Summary: profiling information is not dumped when program exits using System.Environment.Exit ()
+mono_profile_shutdown(), which prints profiling information, is only called
+if the program terminates by exiting Main, so if it exists via
+System.Environment.Exit(), the profiling information isn't printed.
+I assume fixing this would just be a matter of adding a call to
+mono_profile_shutdown() in ves_icall_System_Environment_Exit(), but that
+also leads to the question of whether mono_jit_cleanup() needs to be
+called too, which seems like it would be less trivial to implement.