[Mono-devel-list] AppDomain finalization time
Jaroslaw Kowalski
jaak at zd.com.pl
Fri Mar 5 06:33:43 EST 2004
Can you reconsider committing this patch?
http://bugzilla.ximian.com/showattachment.cgi?attach_id=6839
Jarek
----- Original Message -----
From: "Jaroslaw Kowalski" <jaak at zd.com.pl>
To: "mono-devel mailing list" <mono-devel-list at lists.ximian.com>
Sent: Thursday, March 04, 2004 9:55 PM
Subject: [Mono-devel-list] AppDomain finalization time
> OK. I've made the tests:
>
> Test1: Finalization of the default appdomain (a.cs).
>
> The code prints:
> =========================
> creating A...
> finalizing A...
> 0
> 1
>
> ...
>
> 18
> 19
> =========================
>
> Which means that CLR (both 1.0 and 1.1) gives the default appdomain 2
> seconds to finalize its objects. When the finalizers don't finish in 2
> seconds - they are terminated.
>
> Test2: Finalization of the custom appdomain (a2.cs)
>
> The code prints:
> =========================
> creating A...
> testValue: 3
> unloading...
> finalizing A...
> 0
> 1
> 2
> ...
> ...
> 300 (still working)
> ...
> 1000 (still working)
> ...
> 6000 (still working)
> ...
> ...
> (I killed it after 6700 - over 11 minutes)
> =========================
>
> MSDN docs say:
>
> "A long period of time can pass before domain unloads because it might be
> difficult to terminate executing threads."
>
> Jarek
>
> ----- Original Message -----
> From: "Jaroslaw Kowalski" <jaak at zd.com.pl>
> To: <gonzalo at ximian.com>; "mono-devel mailing list"
> <mono-devel-list at lists.ximian.com>
> Sent: Thursday, March 04, 2004 9:13 PM
> Subject: [Mono-devel-list] Re: [Bug 54980][Maj] Changed -
AppDomain.Unload()
> fails randomly
>
>
> > I think Don Box mentioned something about 40 seconds, bui i'm not
sure...
> >
> > I'll try to verify it.
> >
> > Jarek
> >
> > ----- Original Message -----
> > From: <bugzilla-daemon at bugzilla.ximian.com>
> > To: <mono-bugs at ximian.com>; <jaak at zd.com.pl>
> > Sent: Thursday, March 04, 2004 9:11 PM
> > Subject: [Bug 54980][Maj] Changed - AppDomain.Unload() fails randomly
> >
> >
> > > 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 at users.sf.net.
> > >
> > > http://bugzilla.ximian.com/show_bug.cgi?id=54980
> > >
> > > --- shadow/54980 2004-03-04 14:43:38.000000000 -0500
> > > +++ shadow/54980.tmp.28880 2004-03-04 15:11:59.000000000 -0500
> > > @@ -76,6 +76,16 @@
> > > problems with NAnt and NUnit on Linux?
> > >
> > > ------- Additional Comments From jaak at zd.com.pl 2004-03-04
> 14:43 -------
> > > Created an attachment (id=6839)
> > > small patch to increase AppDomain.Unload() timeouts to prevent
> timed-out
> > errors from coming
> > >
> > > +
> > > +------- Additional Comments From bmaurer at users.sf.net 2004-03-04
> > 15:11 -------
> > > +man, what are those pieces of code *DOING*!?! 10 seconds for
> > > +finalization, that seems absurd. Maybe there is an underlying perf
> > > +problem?
> > > +
> > > +What is the time out time on MS.net, we should go with what they
have.
> > > +
> > > +On MS.net, how long does the finalization code take (/me wonders how
> > > +to test).
> > >
> >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> >
>
More information about the Mono-devel-list
mailing list