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 2006/12/27 11:19:21 UTC
[jira] Created: (HARMONY-2891) [jdktools][jdwp] generate
ClassUnload event
[jdktools][jdwp] generate ClassUnload event
-------------------------------------------
Key: HARMONY-2891
URL: http://issues.apache.org/jira/browse/HARMONY-2891
Project: Harmony
Issue Type: Bug
Components: JDK
Reporter: Ivan Popov
Priority: Minor
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.
-
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-2891) [jdktools][jdwp] generate
ClassUnload event
Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (HARMONY-2891) [jdktools][jdwp] generate
ClassUnload event
Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Popov updated HARMONY-2891:
--------------------------------
Patch Info: [Patch Available]
Patches for this issue should be applied after patches for HARMONY-2889, otherwise it may break other pending JDWP patches.
> [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, H2891_jdwp_tests.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.
[jira] Resolved: (HARMONY-2891) [jdktools][jdwp] generate
ClassUnload event
Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gregory Shimansky resolved HARMONY-2891.
----------------------------------------
Resolution: Fixed
Patches are applied at 559093. Please check that they are applied as expected.
> [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
> Assignee: Gregory Shimansky
> Priority: Minor
> Attachments: H2891_jdwp_agent.patch, H2891_jdwp_tests.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.
[jira] Assigned: (HARMONY-2891) [jdktools][jdwp] generate
ClassUnload event
Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gregory Shimansky reassigned HARMONY-2891:
------------------------------------------
Assignee: Gregory Shimansky
> [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
> Assignee: Gregory Shimansky
> Priority: Minor
> Attachments: H2891_jdwp_agent.patch, H2891_jdwp_tests.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.
[jira] Updated: (HARMONY-2891) [jdktools][jdwp] generate
ClassUnload event
Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
[ 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_tests.patch
Second patch 'H2891_jdwp_tests.patch' adds new tests case to JDWP unit tests to check class unload support:
org.apache.harmony.jpda.tests.jdwp.Events.ClassUnloadTest
This tests uses memory stressing technique to force class unloading and check if CLASS_UNLOAD event was generated for really unloaded class. The result is the following:
- test passes with Harmony, because it is unable to force DRLVM to unload tested class
- test fails with BEA JRockit 1.5 because class is unloaded but event is not generated (JRockit does not support corresponding JVMTI extension)
- test fails with Sun 1.5 and 1.6, because JVM crashes as described above
This test will perform real testing of this functionality when DRLVM implements required JVMTI extension (HARMONY-4390).
> [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, H2891_jdwp_tests.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.
[jira] Updated: (HARMONY-2891) [jdktools][jdwp] generate
ClassUnload event
Posted by "Ivan Popov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Popov updated HARMONY-2891:
--------------------------------
Issue Type: Improvement (was: Bug)
> [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
>
> 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.
[jira] Closed: (HARMONY-2891) [jdktools][jdwp] generate ClassUnload
event
Posted by "Gregory Shimansky (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gregory Shimansky closed HARMONY-2891.
--------------------------------------
No response, assuming ok.
> [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
> Assignee: Gregory Shimansky
> Priority: Minor
> Attachments: H2891_jdwp_agent.patch, H2891_jdwp_tests.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.