You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Kaigorodov (JIRA)" <ji...@apache.org> on 2006/10/25 11:45:18 UTC

[jira] Created: (HARMONY-1959) HLO static path removes code that can produce exceptions if it supposed as dead

HLO static path removes code that can produce exceptions if it supposed as dead 
--------------------------------------------------------------------------------

                 Key: HARMONY-1959
                 URL: http://issues.apache.org/jira/browse/HARMONY-1959
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: all ia32 based platforms
            Reporter: Alexei Kaigorodov
            Priority: Minor


If result of expression "new int[n]" is not used, the expression is considered as dead code and is deleted, regardless of possible exceptions like Out of Memory and Negative Array Size.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1959) HLO static path removes code that can produce exceptions if it supposed as dead

Posted by "Alexei Kaigorodov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1959?page=all ]

Alexei Kaigorodov updated HARMONY-1959:
---------------------------------------

    Attachment: Test.java

This simple test illustrates the problem.

> HLO static path removes code that can produce exceptions if it supposed as dead
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-1959
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1959
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: all ia32 based platforms
>            Reporter: Alexei Kaigorodov
>            Priority: Minor
>         Attachments: Test.java
>
>
> If result of expression "new int[n]" is not used, the expression is considered as dead code and is deleted, regardless of possible exceptions like Out of Memory and Negative Array Size.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1959) HLO static path removes code that can produce exceptions if it supposed as dead

Posted by "Alexei Kaigorodov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1959?page=all ]

Alexei Kaigorodov updated HARMONY-1959:
---------------------------------------

    Attachment: patch2bug1959

The solution is to mark IR instructions like Op_NewArray as able to throw exceptions. This prevent dead code eliminator from deleting such instructions.

> HLO static path removes code that can produce exceptions if it supposed as dead
> -------------------------------------------------------------------------------
>
>                 Key: HARMONY-1959
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1959
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: all ia32 based platforms
>            Reporter: Alexei Kaigorodov
>            Priority: Minor
>         Attachments: patch2bug1959, Test.java
>
>
> If result of expression "new int[n]" is not used, the expression is considered as dead code and is deleted, regardless of possible exceptions like Out of Memory and Negative Array Size.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira