JDK-4913872 : JVMTI agents can't be run in a backward compatible way: -Xrun
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 5.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2003-08-28
  • Updated: 2017-05-16
  • Resolved: 2003-09-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Relates :  
Relates :  
Description
A JVMTI environment can be created in JVM_OnLoad (the entry point when
using -Xrun) -- however much of JVMTI functionality requires capabilities
to be set and these can only be set before the VM is initialized (that is,
in the Agent_OnLoad entry point).

For example, hprof is launched with:

	-Xrunhprof

A JVMTI version of hprof cannot be written which is launched with this
command line.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b19
14-06-2004

EVALUATION like it says
11-06-2004

SUGGESTED FIX If -Xrun fails over to Agent_OnLoad when there is no JVM_OnLoad exist then the problem is solved. This allows agents which -- * work only with -Xrun / JVM_OnLoad * have separate -Xrun / JVM_OnLoad and -agentlib / Agent_OnLoad entries * have only the Agent_OnLoad entry which works with both -Xrun and -agentlib This takes away to functionality since currently and agent with on Agent_OnLoad when launched with -Xrun will abort.
11-06-2004