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

[jira] Created: (HARMONY-4667) Missed exception in the JET on x86_64.

Missed exception in the JET on x86_64.
--------------------------------------

                 Key: HARMONY-4667
                 URL: https://issues.apache.org/jira/browse/HARMONY-4667
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Pavel Afremov
            Priority: Critical


On x86-64 platform test failed in default and jet mode. Interpreter and Opt work OK.
Looks Like bug is in the Jet.

To reproduce the bug copy test.java, test_2a.java & test_2b.java to you test directory.
Compile  test_2a.java, then test.java and after it test_2b.java, like in example:
	$ javac test_2a.java
	$ javac test.java
	$ javac test_2b.java

Outputs are following:
1. RI:
	$ java test
	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>

2. DRLVM default
	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java test
	FAILED No exception was thrown

3. DRLVM interpreter
	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xint test
	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>

4. DRLVM jet
	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:jet test
	FAILED No exception was thrown

5. DRLVM opt
	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:opt test
	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>


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


[jira] Updated: (HARMONY-4667) [drlvm][jit][jet] Missed exception in the JET on x86_64.

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

Pavel Afremov updated HARMONY-4667:
-----------------------------------

    Attachment: test_2b.java

> [drlvm][jit][jet] Missed exception in the JET on x86_64.
> --------------------------------------------------------
>
>                 Key: HARMONY-4667
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4667
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Attachments: test.java, test_2a.java, test_2b.java
>
>
> On x86-64 platform test failed in default and jet mode. Interpreter and Opt work OK.
> Looks Like bug is in the Jet.
> To reproduce the bug copy test.java, test_2a.java & test_2b.java to you test directory.
> Compile  test_2a.java, then test.java and after it test_2b.java, like in example:
> 	$ javac test_2a.java
> 	$ javac test.java
> 	$ javac test_2b.java
> Outputs are following:
> 1. RI:
> 	$ java test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 2. DRLVM default
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java test
> 	FAILED No exception was thrown
> 3. DRLVM interpreter
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xint test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 4. DRLVM jet
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:jet test
> 	FAILED No exception was thrown
> 5. DRLVM opt
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:opt test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>

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


[jira] Resolved: (HARMONY-4667) [drlvm][jit][jet][x86-64] Missed exception in the JET on x86_64.

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

Mikhail Fursov resolved HARMONY-4667.
-------------------------------------

    Resolution: Fixed

Committed revision 585483

> [drlvm][jit][jet][x86-64] Missed exception in the JET on x86_64.
> ----------------------------------------------------------------
>
>                 Key: HARMONY-4667
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4667
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>            Assignee: Mikhail Fursov
>         Attachments: fix.diff, test.java, test_2a.java, test_2b.java
>
>
> On x86-64 platform test failed in default and jet mode. Interpreter and Opt work OK.
> Looks Like bug is in the Jet.
> To reproduce the bug copy test.java, test_2a.java & test_2b.java to you test directory.
> Compile  test_2a.java, then test.java and after it test_2b.java, like in example:
> 	$ javac test_2a.java
> 	$ javac test.java
> 	$ javac test_2b.java
> Outputs are following:
> 1. RI:
> 	$ java test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 2. DRLVM default
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java test
> 	FAILED No exception was thrown
> 3. DRLVM interpreter
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xint test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 4. DRLVM jet
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:jet test
> 	FAILED No exception was thrown
> 5. DRLVM opt
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:opt test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>

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


[jira] Assigned: (HARMONY-4667) [drlvm][jit][jet] Missed exception in the JET on x86_64.

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

Mikhail Fursov reassigned HARMONY-4667:
---------------------------------------

    Assignee: Mikhail Fursov

> [drlvm][jit][jet] Missed exception in the JET on x86_64.
> --------------------------------------------------------
>
>                 Key: HARMONY-4667
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4667
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>            Assignee: Mikhail Fursov
>         Attachments: test.java, test_2a.java, test_2b.java
>
>
> On x86-64 platform test failed in default and jet mode. Interpreter and Opt work OK.
> Looks Like bug is in the Jet.
> To reproduce the bug copy test.java, test_2a.java & test_2b.java to you test directory.
> Compile  test_2a.java, then test.java and after it test_2b.java, like in example:
> 	$ javac test_2a.java
> 	$ javac test.java
> 	$ javac test_2b.java
> Outputs are following:
> 1. RI:
> 	$ java test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 2. DRLVM default
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java test
> 	FAILED No exception was thrown
> 3. DRLVM interpreter
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xint test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 4. DRLVM jet
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:jet test
> 	FAILED No exception was thrown
> 5. DRLVM opt
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:opt test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>

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


[jira] Updated: (HARMONY-4667) [drlvm][jit][jet][x86-64] Missed exception in the JET on x86_64.

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

Pavel Afremov updated HARMONY-4667:
-----------------------------------

    Summary: [drlvm][jit][jet][x86-64] Missed exception in the JET on x86_64.  (was: [drlvm][jit][jet] Missed exception in the JET on x86_64.)

> [drlvm][jit][jet][x86-64] Missed exception in the JET on x86_64.
> ----------------------------------------------------------------
>
>                 Key: HARMONY-4667
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4667
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>            Assignee: Mikhail Fursov
>         Attachments: test.java, test_2a.java, test_2b.java
>
>
> On x86-64 platform test failed in default and jet mode. Interpreter and Opt work OK.
> Looks Like bug is in the Jet.
> To reproduce the bug copy test.java, test_2a.java & test_2b.java to you test directory.
> Compile  test_2a.java, then test.java and after it test_2b.java, like in example:
> 	$ javac test_2a.java
> 	$ javac test.java
> 	$ javac test_2b.java
> Outputs are following:
> 1. RI:
> 	$ java test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 2. DRLVM default
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java test
> 	FAILED No exception was thrown
> 3. DRLVM interpreter
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xint test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 4. DRLVM jet
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:jet test
> 	FAILED No exception was thrown
> 5. DRLVM opt
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:opt test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>

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


[jira] Closed: (HARMONY-4667) [drlvm][jit][jet][x86-64] Missed exception in the JET on x86_64.

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

Pavel Afremov closed HARMONY-4667.
----------------------------------


> [drlvm][jit][jet][x86-64] Missed exception in the JET on x86_64.
> ----------------------------------------------------------------
>
>                 Key: HARMONY-4667
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4667
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>            Assignee: Mikhail Fursov
>         Attachments: fix.diff, test.java, test_2a.java, test_2b.java
>
>
> On x86-64 platform test failed in default and jet mode. Interpreter and Opt work OK.
> Looks Like bug is in the Jet.
> To reproduce the bug copy test.java, test_2a.java & test_2b.java to you test directory.
> Compile  test_2a.java, then test.java and after it test_2b.java, like in example:
> 	$ javac test_2a.java
> 	$ javac test.java
> 	$ javac test_2b.java
> Outputs are following:
> 1. RI:
> 	$ java test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 2. DRLVM default
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java test
> 	FAILED No exception was thrown
> 3. DRLVM interpreter
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xint test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 4. DRLVM jet
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:jet test
> 	FAILED No exception was thrown
> 5. DRLVM opt
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:opt test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>

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


[jira] Updated: (HARMONY-4667) [drlvm][jit][jet] Missed exception in the JET on x86_64.

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

Pavel Afremov updated HARMONY-4667:
-----------------------------------

    Attachment: test.java

> [drlvm][jit][jet] Missed exception in the JET on x86_64.
> --------------------------------------------------------
>
>                 Key: HARMONY-4667
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4667
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Attachments: test.java, test_2a.java, test_2b.java
>
>
> On x86-64 platform test failed in default and jet mode. Interpreter and Opt work OK.
> Looks Like bug is in the Jet.
> To reproduce the bug copy test.java, test_2a.java & test_2b.java to you test directory.
> Compile  test_2a.java, then test.java and after it test_2b.java, like in example:
> 	$ javac test_2a.java
> 	$ javac test.java
> 	$ javac test_2b.java
> Outputs are following:
> 1. RI:
> 	$ java test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 2. DRLVM default
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java test
> 	FAILED No exception was thrown
> 3. DRLVM interpreter
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xint test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 4. DRLVM jet
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:jet test
> 	FAILED No exception was thrown
> 5. DRLVM opt
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:opt test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>

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


[jira] Updated: (HARMONY-4667) [drlvm][jit][jet] Missed exception in the JET on x86_64.

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

Pavel Afremov updated HARMONY-4667:
-----------------------------------

    Attachment: test_2a.java

> [drlvm][jit][jet] Missed exception in the JET on x86_64.
> --------------------------------------------------------
>
>                 Key: HARMONY-4667
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4667
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>         Attachments: test.java, test_2a.java, test_2b.java
>
>
> On x86-64 platform test failed in default and jet mode. Interpreter and Opt work OK.
> Looks Like bug is in the Jet.
> To reproduce the bug copy test.java, test_2a.java & test_2b.java to you test directory.
> Compile  test_2a.java, then test.java and after it test_2b.java, like in example:
> 	$ javac test_2a.java
> 	$ javac test.java
> 	$ javac test_2b.java
> Outputs are following:
> 1. RI:
> 	$ java test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 2. DRLVM default
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java test
> 	FAILED No exception was thrown
> 3. DRLVM interpreter
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xint test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 4. DRLVM jet
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:jet test
> 	FAILED No exception was thrown
> 5. DRLVM opt
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:opt test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>

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


[jira] Updated: (HARMONY-4667) [drlvm][jit][jet] Missed exception in the JET on x86_64.

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

Pavel Afremov updated HARMONY-4667:
-----------------------------------

    Priority: Major  (was: Critical)
     Summary: [drlvm][jit][jet] Missed exception in the JET on x86_64.  (was: Missed exception in the JET on x86_64.)

> [drlvm][jit][jet] Missed exception in the JET on x86_64.
> --------------------------------------------------------
>
>                 Key: HARMONY-4667
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4667
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>
> On x86-64 platform test failed in default and jet mode. Interpreter and Opt work OK.
> Looks Like bug is in the Jet.
> To reproduce the bug copy test.java, test_2a.java & test_2b.java to you test directory.
> Compile  test_2a.java, then test.java and after it test_2b.java, like in example:
> 	$ javac test_2a.java
> 	$ javac test.java
> 	$ javac test_2b.java
> Outputs are following:
> 1. RI:
> 	$ java test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 2. DRLVM default
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java test
> 	FAILED No exception was thrown
> 3. DRLVM interpreter
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xint test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 4. DRLVM jet
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:jet test
> 	FAILED No exception was thrown
> 5. DRLVM opt
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:opt test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>

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


[jira] Updated: (HARMONY-4667) [drlvm][jit][jet][x86-64] Missed exception in the JET on x86_64.

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

Mikhail Fursov updated HARMONY-4667:
------------------------------------

    Attachment: fix.diff

The problem source is:

1) Old non-lazy code uses resolve_virtual method instead of resolve_special for invokespecial methods

2) Lazy-resolution mode is not enabled for EM64T platform today by default. So this is the bug can be reproduced only on this platform but not on IA32. To reproduce this bug on IA32 platform you need to turn lazy resolution off: -XX:jit.arg.lazyResolution=off

The patch fixes the problem in our old, non-lazy mode. However I think we need to switch to lazy-resolution mode on EM64T platform as soon as possible.

> [drlvm][jit][jet][x86-64] Missed exception in the JET on x86_64.
> ----------------------------------------------------------------
>
>                 Key: HARMONY-4667
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4667
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Pavel Afremov
>            Assignee: Mikhail Fursov
>         Attachments: fix.diff, test.java, test_2a.java, test_2b.java
>
>
> On x86-64 platform test failed in default and jet mode. Interpreter and Opt work OK.
> Looks Like bug is in the Jet.
> To reproduce the bug copy test.java, test_2a.java & test_2b.java to you test directory.
> Compile  test_2a.java, then test.java and after it test_2b.java, like in example:
> 	$ javac test_2a.java
> 	$ javac test.java
> 	$ javac test_2b.java
> Outputs are following:
> 1. RI:
> 	$ java test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 2. DRLVM default
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java test
> 	FAILED No exception was thrown
> 3. DRLVM interpreter
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xint test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>
> 4. DRLVM jet
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:jet test
> 	FAILED No exception was thrown
> 5. DRLVM opt
> 	$ ./drlvm/build/lnx_em64t_gcc_debug/deploy/jdk/jre/bin/java -Xem:opt test
> 	PASSED Exception was thrown: java.lang.NoSuchMethodError: <init>

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