Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 40331 invoked from network); 11 Aug 2006 02:20:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2006 02:20:17 -0000 Received: (qmail 46167 invoked by uid 500); 11 Aug 2006 02:20:14 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 46121 invoked by uid 500); 11 Aug 2006 02:20:14 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 46110 invoked by uid 99); 11 Aug 2006 02:20:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 19:20:13 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 202.81.18.154 is neither permitted nor denied by domain of firepure@gmail.com) Received: from [202.81.18.154] (HELO ausmtp05.au.ibm.com) (202.81.18.154) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2006 19:20:02 -0700 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp05.au.ibm.com (8.13.6/8.13.6) with ESMTP id k7B2M5Yk3641396 for ; Fri, 11 Aug 2006 12:22:12 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.250.243]) by sd0208e0.au.ibm.com (8.13.6/8.13.6/NCO v8.1.1) with ESMTP id k7B2McZx234730 for ; Fri, 11 Aug 2006 12:22:48 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k7B2H1wm027479 for ; Fri, 11 Aug 2006 12:17:01 +1000 Received: from d23m0011.cn.ibm.com (d23m0011.cn.ibm.com [9.181.32.74]) by d23av02.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k7B2Gvr8027390 for ; Fri, 11 Aug 2006 12:17:01 +1000 Received: from [9.181.107.166] ([9.181.107.166]) by d23m0011.cn.ibm.com (Lotus Domino Release 6.5.5HF262) with ESMTP id 2006081110190477-1835 ; Fri, 11 Aug 2006 10:19:04 +0800 Message-ID: <44DBE924.7060900@gmail.com> Date: Fri, 11 Aug 2006 10:19:16 +0800 From: "Jimmy, Jing Lv" User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [classlib][instrument]Method to terminate VM. References: In-Reply-To: X-MIMETrack: Itemize by SMTP Server on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 11/08/2006 10:19:04, Serialize by Router on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 11/08/2006 10:19:14, Serialize complete at 11/08/2006 10:19:14 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Leo Li wrote: > Hi, all > During the implementaion of instrument, I encounter the choice about > how to terminate the VM when some abnormal event occurs, for example, the > expected jar file does not exist or the implementation class of > Instrumentation cannot be found. The most simple and direct way is just to > call exit(), and then the whole process will terminate. Hence OS will treat > with all the release of resources. However, I propose to use FatalError of > JNI instead, which notifies the VM to suicide, because it gives right to > the > implementation of VM to take charge of its own funeral affairs, which might > include, for example, logging the cause of its crash. > Any suggestion from VM guys? > Thanks :) > Hi, I agree that use VM FatalError is better than system exit(). If no objections, I will make code that way. -- Best Regards! Jimmy, Jing Lv China Software Development Lab, IBM --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org