You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Nikolay Kuznetsov (JIRA)" <ji...@apache.org> on 2006/10/24 14:54:19 UTC

[jira] Created: (HARMONY-1950) [DRLVM][JVMTI] Java methods called from JVMTI functions should not generate events

[DRLVM][JVMTI] Java methods called from JVMTI functions should not generate events
----------------------------------------------------------------------------------

                 Key: HARMONY-1950
                 URL: http://issues.apache.org/jira/browse/HARMONY-1950
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Nikolay Kuznetsov


Several JVMTI functions call java methods during their execution(to query j.l.Thread state for instance). If SINGLE_STEP or METHOD_ENTRY/EXIT events are enabled, this may result in generating these events for internal calls to these java methods. 

While JVMTI spec says nothing about execution of Java code in JVMTI functions, reference implementation does not generates such events. Moreover those
functions generates events which does not reflect user code behavior and may mislead user JVMTI agents.

Thus calling Java code from JVMTI function should not result in generating events.

-- 
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-1950) [DRLVM][JVMTI] Java methods called from JVMTI functions should not generate events

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

Gregory Shimansky closed HARMONY-1950.
--------------------------------------


> [DRLVM][JVMTI] Java methods called from JVMTI functions should not generate events
> ----------------------------------------------------------------------------------
>
>                 Key: HARMONY-1950
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1950
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Nikolay Kuznetsov
>         Assigned To: Gregory Shimansky
>         Attachments: events.patch
>
>
> Several JVMTI functions call java methods during their execution(to query j.l.Thread state for instance). If SINGLE_STEP or METHOD_ENTRY/EXIT events are enabled, this may result in generating these events for internal calls to these java methods. 
> While JVMTI spec says nothing about execution of Java code in JVMTI functions, reference implementation does not generates such events. Moreover those
> functions generates events which does not reflect user code behavior and may mislead user JVMTI agents.
> Thus calling Java code from JVMTI function should not result in generating events.

-- 
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-1950) [DRLVM][JVMTI] Java methods called from JVMTI functions should not generate events

Posted by "Nikolay Kuznetsov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1950?page=comments#action_12447822 ] 
            
Nikolay Kuznetsov commented on HARMONY-1950:
--------------------------------------------

Thanks Gregory, everything looks fine.

> [DRLVM][JVMTI] Java methods called from JVMTI functions should not generate events
> ----------------------------------------------------------------------------------
>
>                 Key: HARMONY-1950
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1950
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Nikolay Kuznetsov
>         Assigned To: Gregory Shimansky
>         Attachments: events.patch
>
>
> Several JVMTI functions call java methods during their execution(to query j.l.Thread state for instance). If SINGLE_STEP or METHOD_ENTRY/EXIT events are enabled, this may result in generating these events for internal calls to these java methods. 
> While JVMTI spec says nothing about execution of Java code in JVMTI functions, reference implementation does not generates such events. Moreover those
> functions generates events which does not reflect user code behavior and may mislead user JVMTI agents.
> Thus calling Java code from JVMTI function should not result in generating events.

-- 
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-1950) [DRLVM][JVMTI] Java methods called from JVMTI functions should not generate events

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

Gregory Shimansky reassigned HARMONY-1950:
------------------------------------------

    Assignee: Gregory Shimansky

> [DRLVM][JVMTI] Java methods called from JVMTI functions should not generate events
> ----------------------------------------------------------------------------------
>
>                 Key: HARMONY-1950
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1950
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Nikolay Kuznetsov
>         Assigned To: Gregory Shimansky
>         Attachments: events.patch
>
>
> Several JVMTI functions call java methods during their execution(to query j.l.Thread state for instance). If SINGLE_STEP or METHOD_ENTRY/EXIT events are enabled, this may result in generating these events for internal calls to these java methods. 
> While JVMTI spec says nothing about execution of Java code in JVMTI functions, reference implementation does not generates such events. Moreover those
> functions generates events which does not reflect user code behavior and may mislead user JVMTI agents.
> Thus calling Java code from JVMTI function should not result in generating events.

-- 
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-1950) [DRLVM][JVMTI] Java methods called from JVMTI functions should not generate events

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

Nikolay Kuznetsov updated HARMONY-1950:
---------------------------------------

    Attachment: events.patch

Attached patch fixes this problem, the thread local flag is maintained indicating if TI events should be generated. This flag is checked by ti->isEnabled() thus JVMTI event are not being triggered by this particular thread while wile events are locally disabled.


> [DRLVM][JVMTI] Java methods called from JVMTI functions should not generate events
> ----------------------------------------------------------------------------------
>
>                 Key: HARMONY-1950
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1950
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Nikolay Kuznetsov
>         Attachments: events.patch
>
>
> Several JVMTI functions call java methods during their execution(to query j.l.Thread state for instance). If SINGLE_STEP or METHOD_ENTRY/EXIT events are enabled, this may result in generating these events for internal calls to these java methods. 
> While JVMTI spec says nothing about execution of Java code in JVMTI functions, reference implementation does not generates such events. Moreover those
> functions generates events which does not reflect user code behavior and may mislead user JVMTI agents.
> Thus calling Java code from JVMTI function should not result in generating events.

-- 
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-1950) [DRLVM][JVMTI] Java methods called from JVMTI functions should not generate events

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

Gregory Shimansky resolved HARMONY-1950.
----------------------------------------

    Resolution: Fixed

Fix applied at 470553. Please check that it was applied as expected.

> [DRLVM][JVMTI] Java methods called from JVMTI functions should not generate events
> ----------------------------------------------------------------------------------
>
>                 Key: HARMONY-1950
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1950
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Nikolay Kuznetsov
>         Assigned To: Gregory Shimansky
>         Attachments: events.patch
>
>
> Several JVMTI functions call java methods during their execution(to query j.l.Thread state for instance). If SINGLE_STEP or METHOD_ENTRY/EXIT events are enabled, this may result in generating these events for internal calls to these java methods. 
> While JVMTI spec says nothing about execution of Java code in JVMTI functions, reference implementation does not generates such events. Moreover those
> functions generates events which does not reflect user code behavior and may mislead user JVMTI agents.
> Thus calling Java code from JVMTI function should not result in generating events.

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