You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Naveen Neelakantam (JIRA)" <ji...@apache.org> on 2007/01/29 05:14:49 UTC

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

[drlvm][jit] 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


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.


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

Posted by "Naveen Neelakantam (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Naveen Neelakantam updated HARMONY-3069:
----------------------------------------

    Attachment: SystemExit.java
                HelloWorld.java
                testdeinit.patch

> [drlvm][jit] 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.


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

Posted by "Mikhail Fursov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-3069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519891 ] 

Mikhail Fursov commented on HARMONY-3069:
-----------------------------------------

I propose changing the title to ''[drlvm]'
JIT team has nothing to do here. VM shutdown process must be improved to call 'deinit'  for all components.

> [drlvm][jit] 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.


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

Posted by "Naveen Neelakantam (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Naveen Neelakantam updated HARMONY-3069:
----------------------------------------

    Patch Info:   (was: [Patch Available])

> [drlvm][jit] 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
>
> 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.


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

Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
     [ 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.