# HG changeset patch # User sgabdura # Date 1376031813 -14400 # Node ID 38f9393d1847243f93a8d79e910e73a08b82a1ae # Parent 8f66130f7b5c5712c3da196956bb39492a4ae2a4 8020789: Disable exporting of gc.heap_dump diagnostic command Reviewed-by: fparain, ahgross diff -r 8f66130f7b5c -r 38f9393d1847 src/share/vm/services/diagnosticCommand.cpp --- 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(full_export, true, false)); DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl(full_export, true, false)); #if INCLUDE_SERVICES // Heap dumping/inspection supported - DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl(full_export, true, false)); + DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl(DCmd_Source_Internal | DCmd_Source_AttachAPI, true, false)); DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl(full_export, true, false)); DCmdFactory::register_DCmdFactory(new DCmdFactoryImpl(full_export, true, false)); #endif // INCLUDE_SERVICES