8026930: In ManagementAgent.start it should be possible to set the jdp.name parameter (hotspot part)

Sat, 19 Oct 2013 21:29:57 +0400

author
dsamersoff
date
Sat, 19 Oct 2013 21:29:57 +0400
changeset 5968
996d1f2f056f
parent 5967
ee99e1a7c5fb
child 5969
1327b7f85503

8026930: In ManagementAgent.start it should be possible to set the jdp.name parameter (hotspot part)
Summary: Pass one more property from Agent to JdpController
Reviewed-by: jbachorik, sla

src/share/vm/services/diagnosticCommand.cpp file | annotate | diff | comparison | revisions
src/share/vm/services/diagnosticCommand.hpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/services/diagnosticCommand.cpp	Fri Oct 18 19:44:40 2013 -0700
     1.2 +++ b/src/share/vm/services/diagnosticCommand.cpp	Sat Oct 19 21:29:57 2013 +0400
     1.3 @@ -505,7 +505,11 @@
     1.4  
     1.5     _jdp_pause
     1.6    ("jdp.pause",
     1.7 -   "set com.sun.management.jdp.pause", "INT", false)
     1.8 +   "set com.sun.management.jdp.pause", "INT", false),
     1.9 +
    1.10 +   _jdp_name
    1.11 +  ("jdp.name",
    1.12 +   "set com.sun.management.jdp.name", "STRING", false)
    1.13  
    1.14    {
    1.15      _dcmdparser.add_dcmd_option(&_config_file);
    1.16 @@ -527,6 +531,7 @@
    1.17      _dcmdparser.add_dcmd_option(&_jdp_source_addr);
    1.18      _dcmdparser.add_dcmd_option(&_jdp_ttl);
    1.19      _dcmdparser.add_dcmd_option(&_jdp_pause);
    1.20 +    _dcmdparser.add_dcmd_option(&_jdp_name);
    1.21  }
    1.22  
    1.23  
    1.24 @@ -596,6 +601,7 @@
    1.25      PUT_OPTION(_jdp_source_addr);
    1.26      PUT_OPTION(_jdp_ttl);
    1.27      PUT_OPTION(_jdp_pause);
    1.28 +    PUT_OPTION(_jdp_name);
    1.29  
    1.30  #undef PUT_OPTION
    1.31  
     2.1 --- a/src/share/vm/services/diagnosticCommand.hpp	Fri Oct 18 19:44:40 2013 -0700
     2.2 +++ b/src/share/vm/services/diagnosticCommand.hpp	Sat Oct 19 21:29:57 2013 +0400
     2.3 @@ -302,6 +302,7 @@
     2.4    DCmdArgument<char *> _jdp_source_addr;
     2.5    DCmdArgument<jlong>  _jdp_ttl;
     2.6    DCmdArgument<jlong>  _jdp_pause;
     2.7 +  DCmdArgument<char *> _jdp_name;
     2.8  
     2.9  public:
    2.10    JMXStartRemoteDCmd(outputStream *output, bool heap_allocated);

mercurial