[Mono-bugs] [Bug 52220][Wis] New - We leak LocalTemporary's in UnaryMutator

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 7 Feb 2004 12:42:32 -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 miguel@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=52220

--- shadow/52220	2004-02-07 12:42:32.000000000 -0500
+++ shadow/52220.tmp.21479	2004-02-07 12:42:32.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 52220
+Product: Mono/Compilers
+Version: unspecified
+OS: unknown
+OS Details: 
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
+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.
+
+------- Additional Comments From miguel@ximian.com  2004-02-07 12:42 -------
+fixed  in 0.30