8020789: Disable exporting of gc.heap_dump diagnostic command
authorsgabdura
Fri, 09 Aug 2013 11:03:33 +0400
changeset 20662 3296bf2cc204
parent 20661 dcca4dc72fb0
child 20663 de113c8422b7
8020789: Disable exporting of gc.heap_dump diagnostic command Reviewed-by: fparain, ahgross
hotspot/src/share/vm/services/diagnosticCommand.cpp
--- a/hotspot/src/share/vm/services/diagnosticCommand.cpp	Fri Aug 02 11:10:39 2013 +0100
+++ b/hotspot/src/share/vm/services/diagnosticCommand.cpp	Fri Aug 09 11:03:33 2013 +0400
@@ -48,7 +48,7 @@
   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<SystemGCDCmd>(full_export, true, false));
   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<RunFinalizationDCmd>(full_export, true, false));
 #if INCLUDE_SERVICES // Heap dumping/inspection supported
-  DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HeapDumpDCmd>(full_export, true, false));
+  DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<HeapDumpDCmd>(DCmd_Source_Internal | DCmd_Source_AttachAPI, true, false));
   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassHistogramDCmd>(full_export, true, false));
   DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl<ClassStatsDCmd>(full_export, true, false));
 #endif // INCLUDE_SERVICES