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


Reply via email to