Author: miguel
Date: 2007-06-10 12:39:36 -0400 (Sun, 10 Jun 2007)
New Revision: 79121
Modified:
trunk/mono/mono/mini/ChangeLog
trunk/mono/mono/mini/mini-exceptions.c
Log:
2007-06-10 Sanghyeon Seo <[EMAIL PROTECTED]>
* mini-exceptions.c: Generate a method profile leave event during
an exception to ensure that the profiler gets notified.
Modified: trunk/mono/mono/mini/ChangeLog
===================================================================
--- trunk/mono/mono/mini/ChangeLog 2007-06-10 15:38:25 UTC (rev 79120)
+++ trunk/mono/mono/mini/ChangeLog 2007-06-10 16:39:36 UTC (rev 79121)
@@ -1,3 +1,8 @@
+2007-06-10 Sanghyeon Seo <[EMAIL PROTECTED]>
+
+ * mini-exceptions.c: Generate a method profile leave event during
+ an exception to ensure that the profiler gets notified.
+
2007-06-07 Zoltan Varga <[EMAIL PROTECTED]>
* mini-amd64.c (peephole_pass): Merge some small changes from the
linear-ir
Modified: trunk/mono/mono/mini/mini-exceptions.c
===================================================================
--- trunk/mono/mono/mini/mini-exceptions.c 2007-06-10 15:38:25 UTC (rev
79120)
+++ trunk/mono/mono/mini/mini-exceptions.c 2007-06-10 16:39:36 UTC (rev
79121)
@@ -28,6 +28,7 @@
#include <mono/metadata/exception.h>
#include <mono/metadata/gc-internal.h>
#include <mono/metadata/mono-debug.h>
+#include <mono/metadata/profiler.h>
#include "mini.h"
#include "trace.h"
@@ -814,6 +815,9 @@
}
}
}
+ if (!test_only)
+ if (mono_profiler_get_events () &&
MONO_PROFILE_ENTER_LEAVE)
+ mono_profiler_method_leave (ji->method);
}
*ctx = new_ctx;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches