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: [drlvm][shutdown] How to cleanup resources safely?
Date Tue, 21 Nov 2006 14:17:55 GMT
Geir Magnusson Jr. wrote:
> Evgueni Brevnov wrote:
>> On 11/21/06, Geir Magnusson Jr. <geir@pobox.com> wrote:
>>>
>>>
>>> Evgueni Brevnov wrote:
>>> >
>>> > As it was discussed earlier (and I think agreed) the System.exit()
>>> > should terminate entire process the VM is running in right after it
>>> > executed shutdown hooks and finalizes.
>>>
>>> I don't think so.  How could you embed the VM in another program?
>>
>>  My initial understanding was that System.exit() shouldn't terminate
>> the process. But the experiments proved the opposite. AFAIU if you
>> want to embed the application then it should not call System.exit().
>>  I don't see any problems to extend the proposal to the case of
>> System.exit() so that the process will not be stopped. But, do we want
>> such incompatibility with RI?
> 
> Because the RI is doing something really stupid?
> 
> It's supposed to just terminate the VM, right?
> 
> IBM-ers... what does J9 do, and why?

System.exit() eventually results in a call to exit() (on most OSes), so
it will bring down the process too.

I don't think Harmony can change that because it may well break apps.

Regards,
Tim

-- 

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

Mime
View raw message