changeset 5439:38f9393d1847

8020789: Disable exporting of gc.heap_dump diagnostic command Reviewed-by: fparain, ahgross
author sgabdura
date Fri, 09 Aug 2013 11:03:33 +0400
parents 8f66130f7b5c
children ee7a7aa7c6bb
files src/share/vm/services/diagnosticCommand.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/services/diagnosticCommand.cpp	Fri Aug 02 11:10:39 2013 +0100
+++ b/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