# HG changeset patch # User dsamersoff # Date 1382203797 -14400 # Node ID 996d1f2f056f2fd8fc518c2dd623bde5905b7dc8 # Parent ee99e1a7c5fb24f2d7a4e6de744b6a012b645ad2 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 diff -r ee99e1a7c5fb -r 996d1f2f056f src/share/vm/services/diagnosticCommand.cpp --- a/src/share/vm/services/diagnosticCommand.cpp Fri Oct 18 19:44:40 2013 -0700 +++ b/src/share/vm/services/diagnosticCommand.cpp Sat Oct 19 21:29:57 2013 +0400 @@ -505,7 +505,11 @@ _jdp_pause ("jdp.pause", - "set com.sun.management.jdp.pause", "INT", false) + "set com.sun.management.jdp.pause", "INT", false), + + _jdp_name + ("jdp.name", + "set com.sun.management.jdp.name", "STRING", false) { _dcmdparser.add_dcmd_option(&_config_file); @@ -527,6 +531,7 @@ _dcmdparser.add_dcmd_option(&_jdp_source_addr); _dcmdparser.add_dcmd_option(&_jdp_ttl); _dcmdparser.add_dcmd_option(&_jdp_pause); + _dcmdparser.add_dcmd_option(&_jdp_name); } @@ -596,6 +601,7 @@ PUT_OPTION(_jdp_source_addr); PUT_OPTION(_jdp_ttl); PUT_OPTION(_jdp_pause); + PUT_OPTION(_jdp_name); #undef PUT_OPTION diff -r ee99e1a7c5fb -r 996d1f2f056f src/share/vm/services/diagnosticCommand.hpp --- a/src/share/vm/services/diagnosticCommand.hpp Fri Oct 18 19:44:40 2013 -0700 +++ b/src/share/vm/services/diagnosticCommand.hpp Sat Oct 19 21:29:57 2013 +0400 @@ -302,6 +302,7 @@ DCmdArgument _jdp_source_addr; DCmdArgument _jdp_ttl; DCmdArgument _jdp_pause; + DCmdArgument _jdp_name; public: JMXStartRemoteDCmd(outputStream *output, bool heap_allocated);