harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Egor Pasko <egor.pa...@gmail.com>
Subject Re: [drlvm][jit] vm exit tear-down
Date Sat, 27 Jan 2007 11:50:41 GMT
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().

> Is this a bug?

I dunno. A random idea 2: -XcleanupOnExit

> 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