[Mono-bugs] [Bug 80970][Nor] New - WaitForPendingFinalizers does not work

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 26 20:46:13 EST 2007


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 marek.safar at seznam.cz.

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

--- shadow/80970	2007-02-26 20:46:13.000000000 -0500
+++ shadow/80970.tmp.16972	2007-02-26 20:46:13.000000000 -0500
@@ -0,0 +1,64 @@
+Bug#: 80970
+Product: Mono: Runtime
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: GC
+AssignedTo: lupus at ximian.com                            
+ReportedBy: marek.safar at seznam.cz               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: WaitForPendingFinalizers does not work
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1. 
+
+using System;
+
+public class Test
+{
+	static bool success;
+
+	public class Finalizer
+	{
+		~Finalizer ()
+		{
+			Test.success = true;
+		}
+	}
+
+	public static void Main ()
+	{
+		Finalizer f = new Finalizer ();
+		f = null;
+
+		GC.Collect ();
+		GC.WaitForPendingFinalizers ();
+
+		Console.WriteLine ("success = " + success.ToString ());
+	}
+}
+
+Actual Results:
+
+success = False
+
+Expected Results:
+
+success = True
+
+How often does this happen? 
+
+
+Additional Information:


More information about the mono-bugs mailing list