From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14126 invoked by alias); 27 Jul 2009 15:37:38 -0000 Received: (qmail 14094 invoked by uid 22791); 27 Jul 2009 15:37:37 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=BAYES_20,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: sourceware.org Received: from hel.is.scarlet.be (HELO hel.is.scarlet.be) (193.74.71.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 27 Jul 2009 15:37:31 +0000 Received: from scarlet.be (taj.is.scarlet.be [193.74.71.42]) by hel.is.scarlet.be (8.14.2/8.14.2) with ESMTP id n6RFbR7Q015654; Mon, 27 Jul 2009 17:37:27 +0200 Date: Mon, 27 Jul 2009 15:37:00 -0000 Message-Id: Subject: Re: Calling the garbage collector. MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "Chris Gray" To: "cr88192" Cc: "aph" , "abhi00" , "java" X-XaM3-API-Version: 4.1 (B54) X-type: 0 X-SenderIP: 84.196.83.138 X-DCC-scarlet.be-Metrics: hel; whitelist Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg00073.txt.bz2 - > hmm... > > maybe Java needs 'delete'?... As in "maybe the pope needs a wife"? :-) Automatic garbage collection means you don't know when garbage will be collected, it could even be "after the VM exits", i.e. never. Running all finalizers when the VM exits has been tried, and it was a disaster. http://www.velocityreviews.com/forums/t145751-finalize-not-guaranteed-to-be= -called-ever.html http://www.hpl.hp.com/personal/Hans_Boehm/popl03/slides.pdf etc.. PS I'm happy to report that the Mika VM also does not run your finalizer. := -) Chris Gray /k/ Embedded Java Solutions _________________________________________ Scarlet Mobile, free subscription in combination with your Scarlet One or A= DSL, visit http://www.scarlet.be/fr/mobile3g