You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Irina Arkhipets (JIRA)" <ji...@apache.org> on 2006/10/13 09:13:35 UTC

[jira] Created: (HARMONY-1853) [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention

[drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention
--------------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-1853
                 URL: http://issues.apache.org/jira/browse/HARMONY-1853
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: Linux IA-32, Windows IA-32
            Reporter: Irina Arkhipets
         Attachments: test.java

Jitrino OPT does not throw  NegativeArraySizeException as expected when we try to create multidimentional array with the first dimension is 0, the second dimension is negative. 

This bug is not reproducible with Jitrino JET and interpreter.

Please, compile the following test example and run it with "-Xem:opt" switch to reproduce the failure:

--------- test.java ---------
public class test {

    public static void main(String [] args) {
        try {
            int arr [] [] = new int [0] [-1];
            System.out.println("FAILED");
        } catch (NegativeArraySizeException e) {
            System.out.println("PASSED");
        }
    }
}
-------------------------------

Sample output is:
...
F:\work>java -Dvm.assert_dialog=false -Xem:opt test
FAILED
...


-- 
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] Commented: (HARMONY-1853) [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention

Posted by "Mikhail Fursov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1853?page=comments#action_12446995 ] 
            
Mikhail Fursov commented on HARMONY-1853:
-----------------------------------------

Yes, you are right.
I will adjust the fix and retest performance impact.

> [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1853
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1853
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux IA-32, Windows IA-32
>            Reporter: Irina Arkhipets
>         Attachments: multi.diff, test.java
>
>
> Jitrino OPT does not throw  NegativeArraySizeException as expected when we try to create multidimentional array with the first dimension is 0, the second dimension is negative. 
> This bug is not reproducible with Jitrino JET and interpreter.
> Please, compile the following test example and run it with "-Xem:opt" switch to reproduce the failure:
> --------- test.java ---------
> public class test {
>     public static void main(String [] args) {
>         try {
>             int arr [] [] = new int [0] [-1];
>             System.out.println("FAILED");
>         } catch (NegativeArraySizeException e) {
>             System.out.println("PASSED");
>         }
>     }
> }
> -------------------------------
> Sample output is:
> ...
> F:\work>java -Dvm.assert_dialog=false -Xem:opt test
> FAILED
> ...

-- 
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] Resolved: (HARMONY-1853) [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1853?page=all ]

Geir Magnusson Jr resolved HARMONY-1853.
----------------------------------------

    Resolution: Fixed

r471241

Ubuntu 6 - smoke, c-unit, ~kernel


> [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1853
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1853
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux IA-32, Windows IA-32
>            Reporter: Irina Arkhipets
>         Assigned To: Geir Magnusson Jr
>         Attachments: multi.diff, test.java
>
>
> Jitrino OPT does not throw  NegativeArraySizeException as expected when we try to create multidimentional array with the first dimension is 0, the second dimension is negative. 
> This bug is not reproducible with Jitrino JET and interpreter.
> Please, compile the following test example and run it with "-Xem:opt" switch to reproduce the failure:
> --------- test.java ---------
> public class test {
>     public static void main(String [] args) {
>         try {
>             int arr [] [] = new int [0] [-1];
>             System.out.println("FAILED");
>         } catch (NegativeArraySizeException e) {
>             System.out.println("PASSED");
>         }
>     }
> }
> -------------------------------
> Sample output is:
> ...
> F:\work>java -Dvm.assert_dialog=false -Xem:opt test
> FAILED
> ...

-- 
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] Closed: (HARMONY-1853) [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1853?page=all ]

Geir Magnusson Jr closed HARMONY-1853.
--------------------------------------


> [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1853
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1853
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux IA-32, Windows IA-32
>            Reporter: Irina Arkhipets
>         Assigned To: Geir Magnusson Jr
>         Attachments: multi.diff, test.java
>
>
> Jitrino OPT does not throw  NegativeArraySizeException as expected when we try to create multidimentional array with the first dimension is 0, the second dimension is negative. 
> This bug is not reproducible with Jitrino JET and interpreter.
> Please, compile the following test example and run it with "-Xem:opt" switch to reproduce the failure:
> --------- test.java ---------
> public class test {
>     public static void main(String [] args) {
>         try {
>             int arr [] [] = new int [0] [-1];
>             System.out.println("FAILED");
>         } catch (NegativeArraySizeException e) {
>             System.out.println("PASSED");
>         }
>     }
> }
> -------------------------------
> Sample output is:
> ...
> F:\work>java -Dvm.assert_dialog=false -Xem:opt test
> FAILED
> ...

-- 
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-1853) [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention

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

Mikhail Fursov updated HARMONY-1853:
------------------------------------

    Attachment: multi.diff

The fix.
Egor could you review please?

> [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1853
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1853
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux IA-32, Windows IA-32
>            Reporter: Irina Arkhipets
>         Attachments: multi.diff, test.java
>
>
> Jitrino OPT does not throw  NegativeArraySizeException as expected when we try to create multidimentional array with the first dimension is 0, the second dimension is negative. 
> This bug is not reproducible with Jitrino JET and interpreter.
> Please, compile the following test example and run it with "-Xem:opt" switch to reproduce the failure:
> --------- test.java ---------
> public class test {
>     public static void main(String [] args) {
>         try {
>             int arr [] [] = new int [0] [-1];
>             System.out.println("FAILED");
>         } catch (NegativeArraySizeException e) {
>             System.out.println("PASSED");
>         }
>     }
> }
> -------------------------------
> Sample output is:
> ...
> F:\work>java -Dvm.assert_dialog=false -Xem:opt test
> FAILED
> ...

-- 
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] Assigned: (HARMONY-1853) [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention

Posted by "Geir Magnusson Jr (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1853?page=all ]

Geir Magnusson Jr reassigned HARMONY-1853:
------------------------------------------

    Assignee: Geir Magnusson Jr

> [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1853
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1853
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux IA-32, Windows IA-32
>            Reporter: Irina Arkhipets
>         Assigned To: Geir Magnusson Jr
>         Attachments: multi.diff, test.java
>
>
> Jitrino OPT does not throw  NegativeArraySizeException as expected when we try to create multidimentional array with the first dimension is 0, the second dimension is negative. 
> This bug is not reproducible with Jitrino JET and interpreter.
> Please, compile the following test example and run it with "-Xem:opt" switch to reproduce the failure:
> --------- test.java ---------
> public class test {
>     public static void main(String [] args) {
>         try {
>             int arr [] [] = new int [0] [-1];
>             System.out.println("FAILED");
>         } catch (NegativeArraySizeException e) {
>             System.out.println("PASSED");
>         }
>     }
> }
> -------------------------------
> Sample output is:
> ...
> F:\work>java -Dvm.assert_dialog=false -Xem:opt test
> FAILED
> ...

-- 
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] Commented: (HARMONY-1853) [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention

Posted by "Egor Pasko (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1853?page=comments#action_12446929 ] 
            
Egor Pasko commented on HARMONY-1853:
-------------------------------------

verified. Good! fixes the test on OPT! (BTW, I had to dos2unix to apply the patch)

BTW2: NewObj can throw OOME. Should we make it exceptional too? I think, yes. Won't degrade performance, IMHO.

c-unit, smoke, kernel tests _passed_ on SUSE9 (r470756)

> [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1853
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1853
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux IA-32, Windows IA-32
>            Reporter: Irina Arkhipets
>         Attachments: multi.diff, test.java
>
>
> Jitrino OPT does not throw  NegativeArraySizeException as expected when we try to create multidimentional array with the first dimension is 0, the second dimension is negative. 
> This bug is not reproducible with Jitrino JET and interpreter.
> Please, compile the following test example and run it with "-Xem:opt" switch to reproduce the failure:
> --------- test.java ---------
> public class test {
>     public static void main(String [] args) {
>         try {
>             int arr [] [] = new int [0] [-1];
>             System.out.println("FAILED");
>         } catch (NegativeArraySizeException e) {
>             System.out.println("PASSED");
>         }
>     }
> }
> -------------------------------
> Sample output is:
> ...
> F:\work>java -Dvm.assert_dialog=false -Xem:opt test
> FAILED
> ...

-- 
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-1853) [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention

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

Irina Arkhipets updated HARMONY-1853:
-------------------------------------

    Attachment: test.java

test source file

> [drlvm][jit] Jitrino OPT does not throw NegativeArraySizeException when creates multi-dimentional array with negative second dimention
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1853
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1853
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux IA-32, Windows IA-32
>            Reporter: Irina Arkhipets
>         Attachments: test.java
>
>
> Jitrino OPT does not throw  NegativeArraySizeException as expected when we try to create multidimentional array with the first dimension is 0, the second dimension is negative. 
> This bug is not reproducible with Jitrino JET and interpreter.
> Please, compile the following test example and run it with "-Xem:opt" switch to reproduce the failure:
> --------- test.java ---------
> public class test {
>     public static void main(String [] args) {
>         try {
>             int arr [] [] = new int [0] [-1];
>             System.out.println("FAILED");
>         } catch (NegativeArraySizeException e) {
>             System.out.println("PASSED");
>         }
>     }
> }
> -------------------------------
> Sample output is:
> ...
> F:\work>java -Dvm.assert_dialog=false -Xem:opt test
> FAILED
> ...

-- 
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