You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2007/08/15 13:23:30 UTC

[jira] Updated: (HARMONY-3069) [drlvm][shutdown] JIT deinit methods not called after System.exit(...)

     [ https://issues.apache.org/jira/browse/HARMONY-3069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gregory Shimansky updated HARMONY-3069:
---------------------------------------

    Summary: [drlvm][shutdown] JIT deinit methods not called after System.exit(...)  (was: [drlvm][jit] JIT deinit methods not called after System.exit(...))

I agree. Changing the summary.

> [drlvm][shutdown] JIT deinit methods not called after System.exit(...)
> ----------------------------------------------------------------------
>
>                 Key: HARMONY-3069
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3069
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: RHEL4 update 4, i386, gcc 4.1.0, r500930
>            Reporter: Naveen Neelakantam
>         Attachments: HelloWorld.java, SystemExit.java, testdeinit.patch
>
>
> The deinit method of an optimization pass is not invoked if the Java app calls System.exit(...)
> I've attached 3 files to help demonstrate the bug:
> testdeinit.patch: patch which provides an example optimization pass that prints a message on initialization and deinitializatoin.  The patch also includes an emconf file to use the pass.
> HelloWorld.java: simple test program that prints "Hello World"
> SystemExit.java: simple test program that prints "Hello World" and then calles System.exit(0)
> If you try running HelloWorld.java, the deinitialization method is invoked:
> >java -Xem:testdeinit HelloWorld
> init called
> Hello World
> deinit called
> If you try running SystemExit.java, the deinitialization method is _not_ invoked:
> >java -Xem:testdeinit SystemExit
> init called
> Hello World

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.