Hi, The API docs say "Calling the gc method suggests that the Java Virtual Machine expend effort toward recycling unused objects"
"Suggests" is the keyword and I've never really found this to be of much use esp. with hotspot and the like (there again, our boxes all have tons of RAM allocated to java :-) But a <takeoutthetrash /> task just sounds *so* cool... Les > -----Original Message----- > From: Dominique Devienne [mailto:[EMAIL PROTECTED] > Sent: 18 June 2002 20:56 > To: 'Ant Developers List' > Subject: RE: Task to perform garbage collection > > > I've always heard this wasn't of much use... The Java > language 3rd edition <snip> > -----Original Message----- > From: Magesh Umasankar [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 18, 2002 2:37 PM > To: Ant Developers List > Subject: Task to perform garbage collection > > Hi, > > I propose to create a very simple task named > <recyclememory/> or <collectgarbage/> that > > * invokes System.runFinalization(); and then > * invokes System.gc(); > > This gives the build writer a chance to > suggest to the JVM to free up memory just > before start of a heavy-weight job, for > instance. > > Comments? > > Cheers, > Magesh > > ********************************************* > * When in doubt, mumble; when in trouble, * > * delegate; when in charge, ponder. * > * - James H. Boren * > ********************************************* > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
