[Mono-bugs] [Bug 38152][Min] New - profiling information is not dumped when program exits using System.Environment.Exit ()
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
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 peterw@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=38152
--- shadow/38152 Sat Feb 15 17:16:51 2003
+++ shadow/38152.tmp.12898 Sat Feb 15 17:16:51 2003
@@ -0,0 +1,26 @@
+Bug#: 38152
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Minor
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: peterw@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+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.