[Mono-list] GC not being called.
Roberto Jimeno
rjimeno2003@yahoo.com
Mon, 15 Mar 2004 23:57:36 -0800 (PST)
--0-1552110897-1079423856=:61097
Content-Type: text/plain; charset=us-ascii
Content-Id:
Content-Disposition: inline
Hello all,
recently I upgraded my RPMs of Mono to the newest
version 0.30.2. Unfortunatelly I believe there is a
bug in the runtime, because the small program attached
to this message don't appear to be calling its method
Finalize() even under heavy memory preasure.
After receiving some kind help from Cesar (who
verified that Finalize() was actually being called
when Microsoft's framework was used instead of Mono) I
filled bug 55644.
Please check if this is actually a bug. If this
happens to be true I think a new RPM should be built
ASAP.
TIA.
BTW, if you decide to try the attached program, be
prepared to have your CPU sucked by the process. Keep
your fingers near Ctrl-C, and "top" runing in a window
nearby. If the message "El finalizador fue llamado
..." appears on your screen after a few seconds, then
everything should be OK. If not, then beware.
=====
Roberto Jimeno
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com
--0-1552110897-1079423856=:61097
Content-Type: application/octet-stream; name="finalizador-1.cs"
Content-Transfer-Encoding: base64
Content-Description: finalizador-1.cs
Content-Disposition: attachment; filename="finalizador-1.cs"
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uSU87CiAKY2xhc3Mgb2JqZXRv
CnsKICAgIHN0YXRpYyBzdHJpbmcgbm9tYnJlRGVBcmNoaXZvID0gInJlY3Vy
c29zLTEuZXhlIjsKICAgIHN0YXRpYyBsb25nIG51bWVyb0RlQXJjaGl2b3NB
YmllcnRvcz0wOwogICAgc3RhdGljIGxvbmcgbnVtZXJvRGVPYmpldG9zVml2
b3NFbk1lbW9yaWE9MDsKICAgIHB1YmxpYyBsb25nIGlkZW50aWZpY2Fkb3I9
MDsKICAgIEZpbGVTdHJlYW0gZnM7CiAKICAgIHB1YmxpYyBvYmpldG8obG9u
ZyBudW1lcm9EZU9iamV0b3MpewogICAgICAgIG51bWVyb0RlT2JqZXRvc1Zp
dm9zRW5NZW1vcmlhKys7CiA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