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 Sun, 28 Jan 2007 11:09:34 GMT
On the 0x26C day of Apache Harmony Naveen Neelakantam wrote:
> 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?

oops, this option was removed with commit r487483:
    Applied HARMONY-2391 [drlvm] The VM doesn't cleanup resources if
    there are running daemon threads.

should work as if this option is ON

> 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
> >
> 
> 

-- 
Egor Pasko


Mime
View raw message