You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ilya Berezhniuk (JIRA)" <ji...@apache.org> on 2006/12/07 23:37:21 UTC

[jira] Created: (HARMONY-2531) [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint

[drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint
---------------------------------------------------------------------

                 Key: HARMONY-2531
                 URL: http://issues.apache.org/jira/browse/HARMONY-2531
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: ia32
            Reporter: Ilya Berezhniuk
            Priority: Minor


When JVMTI breakpoint is occured in JITted code, execution is stopped on instrumented instruction. To continue execution, breakpoint handler copies original instruction to special buffer and executes it.

When such instruction produces hardware exception, exception handler/signal handlers receive buffer address instead of original address and cannot detect code type correctly. So HWE in instrumented Java code is interpreted as HWE in native code.

-- 
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-2531) [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint

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

Ilya Berezhniuk updated HARMONY-2531:
-------------------------------------

    Patch Info: [Patch Available]

> [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-2531
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2531
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: ia32
>            Reporter: Ilya Berezhniuk
>         Assigned To: Gregory Shimansky
>            Priority: Minor
>         Attachments: exception_in_buffer.lnx.patch, exception_in_buffer.win.patch
>
>
> When JVMTI breakpoint is occured in JITted code, execution is stopped on instrumented instruction. To continue execution, breakpoint handler copies original instruction to special buffer and executes it.
> When such instruction produces hardware exception, exception handler/signal handlers receive buffer address instead of original address and cannot detect code type correctly. So HWE in instrumented Java code is interpreted as HWE in native code.

-- 
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-2531) [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint

Posted by "Ilya Berezhniuk (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-2531?page=comments#action_12458817 ] 
            
Ilya Berezhniuk commented on HARMONY-2531:
------------------------------------------

I've checked, fix was applied correctly.

> [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-2531
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2531
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: ia32
>            Reporter: Ilya Berezhniuk
>         Assigned To: Gregory Shimansky
>            Priority: Minor
>         Attachments: exception_in_buffer.lnx.patch, exception_in_buffer.win.patch
>
>
> When JVMTI breakpoint is occured in JITted code, execution is stopped on instrumented instruction. To continue execution, breakpoint handler copies original instruction to special buffer and executes it.
> When such instruction produces hardware exception, exception handler/signal handlers receive buffer address instead of original address and cannot detect code type correctly. So HWE in instrumented Java code is interpreted as HWE in native code.

-- 
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-2531) [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint

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

Gregory Shimansky closed HARMONY-2531.
--------------------------------------


VERIFIED

> [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-2531
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2531
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: ia32
>            Reporter: Ilya Berezhniuk
>         Assigned To: Gregory Shimansky
>            Priority: Minor
>         Attachments: exception_in_buffer.lnx.patch, exception_in_buffer.win.patch
>
>
> When JVMTI breakpoint is occured in JITted code, execution is stopped on instrumented instruction. To continue execution, breakpoint handler copies original instruction to special buffer and executes it.
> When such instruction produces hardware exception, exception handler/signal handlers receive buffer address instead of original address and cannot detect code type correctly. So HWE in instrumented Java code is interpreted as HWE in native code.

-- 
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-2531) [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint

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

Gregory Shimansky resolved HARMONY-2531.
----------------------------------------

    Resolution: Fixed

Patch applied at 487371. Please check that it was applied as expected.

> [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-2531
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2531
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: ia32
>            Reporter: Ilya Berezhniuk
>         Assigned To: Gregory Shimansky
>            Priority: Minor
>         Attachments: exception_in_buffer.lnx.patch, exception_in_buffer.win.patch
>
>
> When JVMTI breakpoint is occured in JITted code, execution is stopped on instrumented instruction. To continue execution, breakpoint handler copies original instruction to special buffer and executes it.
> When such instruction produces hardware exception, exception handler/signal handlers receive buffer address instead of original address and cannot detect code type correctly. So HWE in instrumented Java code is interpreted as HWE in native code.

-- 
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-2531) [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint

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

Gregory Shimansky reassigned HARMONY-2531:
------------------------------------------

    Assignee: Gregory Shimansky

> [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-2531
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2531
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: ia32
>            Reporter: Ilya Berezhniuk
>         Assigned To: Gregory Shimansky
>            Priority: Minor
>         Attachments: exception_in_buffer.win.patch
>
>
> When JVMTI breakpoint is occured in JITted code, execution is stopped on instrumented instruction. To continue execution, breakpoint handler copies original instruction to special buffer and executes it.
> When such instruction produces hardware exception, exception handler/signal handlers receive buffer address instead of original address and cannot detect code type correctly. So HWE in instrumented Java code is interpreted as HWE in native code.

-- 
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-2531) [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint

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

Ilya Berezhniuk updated HARMONY-2531:
-------------------------------------

    Attachment: exception_in_buffer.win.patch

This patch fixes problem for Windows.

> [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-2531
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2531
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: ia32
>            Reporter: Ilya Berezhniuk
>            Priority: Minor
>         Attachments: exception_in_buffer.win.patch
>
>
> When JVMTI breakpoint is occured in JITted code, execution is stopped on instrumented instruction. To continue execution, breakpoint handler copies original instruction to special buffer and executes it.
> When such instruction produces hardware exception, exception handler/signal handlers receive buffer address instead of original address and cannot detect code type correctly. So HWE in instrumented Java code is interpreted as HWE in native code.

-- 
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-2531) [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint

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

Ilya Berezhniuk updated HARMONY-2531:
-------------------------------------

    Attachment: exception_in_buffer.lnx.patch

Patch exception_in_buffer.lnx.patch fixes problem for Linux/ia32.

> [drlvm][jvmti] Incorrect code type when HWE occures on JIT breakpoint
> ---------------------------------------------------------------------
>
>                 Key: HARMONY-2531
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2531
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: ia32
>            Reporter: Ilya Berezhniuk
>         Assigned To: Gregory Shimansky
>            Priority: Minor
>         Attachments: exception_in_buffer.lnx.patch, exception_in_buffer.win.patch
>
>
> When JVMTI breakpoint is occured in JITted code, execution is stopped on instrumented instruction. To continue execution, breakpoint handler copies original instruction to special buffer and executes it.
> When such instruction produces hardware exception, exception handler/signal handlers receive buffer address instead of original address and cannot detect code type correctly. So HWE in instrumented Java code is interpreted as HWE in native code.

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