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 2007/02/21 09:41:05 UTC

[jira] Created: (HARMONY-3212) [drlvm][jvmti] JVMTI tries to single step through native method

[drlvm][jvmti] JVMTI tries to single step through native method
---------------------------------------------------------------

                 Key: HARMONY-3212
                 URL: https://issues.apache.org/jira/browse/HARMONY-3212
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Ilya Berezhniuk


When stepping through Java method, JVMTI sets breakpoints to location 0 for methods which are called from current method.
Currently JVMTI does this for native methods too, although TI spec. says "No single step events are generated from within native methods".

Such behavior leads to assertions, when instrumented native method was not bound yet (i.e. has ST_NotCompiled), and was added as pending breakpoint.

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


[jira] Updated: (HARMONY-3212) [drlvm][jvmti] JVMTI tries to single step through native method

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

Ilya Berezhniuk updated HARMONY-3212:
-------------------------------------

    Patch Info: [Patch Available]

> [drlvm][jvmti] JVMTI tries to single step through native method
> ---------------------------------------------------------------
>
>                 Key: HARMONY-3212
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3212
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Ilya Berezhniuk
>         Attachments: ss_wo_native.diff
>
>
> When stepping through Java method, JVMTI sets breakpoints to location 0 for methods which are called from current method.
> Currently JVMTI does this for native methods too, although TI spec. says "No single step events are generated from within native methods".
> Such behavior leads to assertions, when instrumented native method was not bound yet (i.e. has ST_NotCompiled), and was added as pending breakpoint.

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


[jira] Assigned: (HARMONY-3212) [drlvm][jvmti] JVMTI tries to single step through native method

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

Gregory Shimansky reassigned HARMONY-3212:
------------------------------------------

    Assignee: Gregory Shimansky

> [drlvm][jvmti] JVMTI tries to single step through native method
> ---------------------------------------------------------------
>
>                 Key: HARMONY-3212
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3212
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Ilya Berezhniuk
>         Assigned To: Gregory Shimansky
>         Attachments: ss_wo_native.diff
>
>
> When stepping through Java method, JVMTI sets breakpoints to location 0 for methods which are called from current method.
> Currently JVMTI does this for native methods too, although TI spec. says "No single step events are generated from within native methods".
> Such behavior leads to assertions, when instrumented native method was not bound yet (i.e. has ST_NotCompiled), and was added as pending breakpoint.

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


[jira] Closed: (HARMONY-3212) [drlvm][jvmti] JVMTI tries to single step through native method

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

Gregory Shimansky closed HARMONY-3212.
--------------------------------------

    Resolution: Fixed

Patch applied at 510721.

> [drlvm][jvmti] JVMTI tries to single step through native method
> ---------------------------------------------------------------
>
>                 Key: HARMONY-3212
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3212
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Ilya Berezhniuk
>         Assigned To: Gregory Shimansky
>         Attachments: ss_wo_native.diff
>
>
> When stepping through Java method, JVMTI sets breakpoints to location 0 for methods which are called from current method.
> Currently JVMTI does this for native methods too, although TI spec. says "No single step events are generated from within native methods".
> Such behavior leads to assertions, when instrumented native method was not bound yet (i.e. has ST_NotCompiled), and was added as pending breakpoint.

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


[jira] Updated: (HARMONY-3212) [drlvm][jvmti] JVMTI tries to single step through native method

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

Ilya Berezhniuk updated HARMONY-3212:
-------------------------------------

    Attachment: ss_wo_native.diff

Suggested patch fixes the problem.
Patch also removes redundant check for pending breakpoints which is performed without lock.

> [drlvm][jvmti] JVMTI tries to single step through native method
> ---------------------------------------------------------------
>
>                 Key: HARMONY-3212
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3212
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Ilya Berezhniuk
>         Attachments: ss_wo_native.diff
>
>
> When stepping through Java method, JVMTI sets breakpoints to location 0 for methods which are called from current method.
> Currently JVMTI does this for native methods too, although TI spec. says "No single step events are generated from within native methods".
> Such behavior leads to assertions, when instrumented native method was not bound yet (i.e. has ST_NotCompiled), and was added as pending breakpoint.

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