I've thought that -XcleanUpOnExit is ON by default today.
Anyway, IMO the issue is must be fixed before we announce our v1.0 release, because VM/JIT/EM/Profilers do not deallocate any resources if System.exit(..) is called. On 1/29/07, Naveen Neelakantam <[EMAIL PROTECTED]> wrote:
On Jan 28, 2007, at 5:09 AM, Egor Pasko wrote: > 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 Ok, I've opened a JIRA to track this issue. It includes a testcase that demonstrates the bug: https://issues.apache.org/jira/browse/HARMONY-3069 >> 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 >
-- Mikhail Fursov
