[Mono-bugs] [Bug 31333][Nor] Changed - GC problem with Console.WriteLine in the finalization code.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
28 Sep 2002 00:31:51 -0000


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 manyoso@yahoo.com.

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

--- shadow/31333	Fri Sep 27 00:06:49 2002
+++ shadow/31333.tmp.26758	Fri Sep 27 20:31:51 2002
@@ -99,6 +99,17 @@
 ---Type <return> to continue, or q <return> to quit--- 
  
 The mono_jit_runtime_invoke method is Finalize and the obj is a MyClass...
 
 ------- Additional Comments From manyoso@yahoo.com  2002-09-27 00:06 -------
 Forgot to mention that the backtrace represents current Mono and gc6.1 final  
+
+------- Additional Comments From manyoso@yahoo.com  2002-09-27 20:31 -------
+After a nice debug session with gdb I think I know what is going on.  The problem 
+centers on the run_finalize method in metadata/gc.c 
+ 
+Basically in the course of execution the GC is run to free up resources and this 
+results in a cyclic loop ad infinitum, because the GC does not have enough 
+resources to run the finalization code.  So it attempts to free up resources to run 
+the finalization code, but it doesn't have enough resources to run ... so it attempts 
+to free up resources ... but it doesn't have enough ... You get the picture ;) 
+