You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ivan Popov (JIRA)" <ji...@apache.org> on 2007/07/08 07:53:04 UTC

[jira] Updated: (HARMONY-2891) [jdktools][jdwp] generate ClassUnload event

     [ https://issues.apache.org/jira/browse/HARMONY-2891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ivan Popov updated HARMONY-2891:
--------------------------------

    Attachment: H2891_jdwp_agent.patch

Attached patch 'H2891_jdwp_agent.patch' for JDWP agent adds support for CLASS_UNLOAD event based ion JVMTI extension described in HARMONY-4390. If agent detects extension event 'com.sun.hotspot.functions.IsClassUnloadingEnabled', it uses it for generating CLASS_UNLOAD events. If there is no such extension, agent just ignores all requests for CLASS_UNLOAD events.

Though this processing this event callback is similar to other events, I was not test it thoroughly. DRLVM and JRockit 1.5 does not provide this extension. Sun's 1.5 and 1.6 JRE provide this extension, but they fail to obtain information about unloaded class and then crash somewher in jvm.dll (see HARMONY-4390).

It's still safe to apply this patch, because it does not break any existing JDWP support, and can be thoroughly tested (and possibly improved) after DRLVM provides support for such JVMTI extension.


> [jdktools][jdwp] generate ClassUnload event
> -------------------------------------------
>
>                 Key: HARMONY-2891
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2891
>             Project: Harmony
>          Issue Type: Improvement
>          Components: JDK
>            Reporter: Ivan Popov
>            Priority: Minor
>         Attachments: H2891_jdwp_agent.patch
>
>
> Current implementation of JDWP agent does not support generation of ClassUnload event. This feature is not used often in real debug scenarios and may be not supported by JVM, so it is of low priority. However, DRLVM is going to support class unloading, which requires exposing this functionality via JVMTI extension and implementing generation of JDWP ClassUnload event.

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