[Mono-bugs] [Bug 52220][Wis] New - We leak LocalTemporary's in UnaryMutator
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 16 Dec 2003 00:24:19 -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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=52220
--- shadow/52220 2003-12-16 00:24:19.000000000 -0500
+++ shadow/52220.tmp.31899 2003-12-16 00:24:19.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 52220
+Product: Mono/Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: C#
+AssignedTo: bmaurer@users.sf.net
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: We leak LocalTemporary's in UnaryMutator
+
+Description of Problem:
+
+In this code:
+
+class T {
+ static void Main ()
+ {
+ Blah (0);
+ }
+
+ static void Blah (int j)
+ {
+ for (int i = 0; i < 50000; i++)
+ {
+ j --; j --; j --; j --;
+ j --; j --; j --; j --;
+ j --; j --; j --; j --;
+
+ j ++; j ++; j ++; j ++;
+ j ++; j ++; j ++; j ++;
+ j ++; j ++; j ++; j ++;
+ }
+ }
+}
+
+There are tons of local int variables in Blah (). Each ++/-- is creating
+its own temp variable and not releasing it.