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 17:00:17 UTC

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

     [ 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