harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naveen Neelakantam <neela...@uiuc.edu>
Subject Re: [drlvm][jit] vm exit tear-down
Date Sat, 27 Jan 2007 22:55:00 GMT

On Jan 27, 2007, at 5:50 AM, Egor Pasko wrote:

> On the 0x26B day of Apache Harmony Naveen Neelakantam wrote:
>> Good call Mikhail!
>>
>> I wrote a HelloWorld that uses System.exit() and deinit() is not
>> called when the VM exits.
>>
>> However, if I remove the call to System.exit(), then deinit() is
>> called when the VM exits.
>
> A random idea: you can instrument System.exit() in JIT with your
> deinit().

Instrumenting System.exit() works for now.  Thanks for the suggestion  
Egor!

>> Is this a bug?
>
> I dunno. A random idea 2: -XcleanupOnExit

I couldn't find an option like that.

I do think this is a bug though.  Anyone second me?

Naveen


>> Naveen
>>
>> On Jan 26, 2007, at 9:18 AM, Mikhail Fursov wrote:
>>
>>> Does benchmark uses System.exit(..) to exit?
>>> I remember that I had the same problem, so I had to add data-
>>> dumping into
>>> thread-detach code in Jitrino.cpp..
>>>
>>> VM Gurus! Tell us more about current (System.exit() & safe shutdown)
>>> status?!
>>>
>>>
>>> -- 
>>> Mikhail Fursov
>>
>>
>
> -- 
> Egor Pasko
>


Mime
View raw message