harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [classlib][instrument]Method to terminate VM.
Date Fri, 11 Aug 2006 08:54:43 GMT
Jimmy, Jing Lv wrote:
> 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.

Agreed, throw an error.



Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

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

View raw message