# HG changeset patch # User kevinw # Date 1504253000 25200 # Node ID d8bd7f7d514716561785230cf1cf2a253bc7e9fe # Parent 6bdc0c9c44afdfd70deff9b474a3ea8b96505ed8 8186902: jcmd GC.run should not be blocked by DisableExplicitGC Reviewed-by: mgerdin, sspitsyn diff -r 6bdc0c9c44af -r d8bd7f7d5147 hotspot/src/share/vm/services/diagnosticCommand.cpp --- a/hotspot/src/share/vm/services/diagnosticCommand.cpp Thu Aug 31 17:06:10 2017 +0000 +++ b/hotspot/src/share/vm/services/diagnosticCommand.cpp Fri Sep 01 01:03:20 2017 -0700 @@ -414,11 +414,7 @@ } void SystemGCDCmd::execute(DCmdSource source, TRAPS) { - if (!DisableExplicitGC) { - Universe::heap()->collect(GCCause::_dcmd_gc_run); - } else { - output()->print_cr("Explicit GC is disabled, no GC has been performed."); - } + Universe::heap()->collect(GCCause::_dcmd_gc_run); } void RunFinalizationDCmd::execute(DCmdSource source, TRAPS) {