# HG changeset patch # User kvn # Date 1477683202 0 # Node ID ff3dd31ee8c2450ec9feab690fd08a5daea0fa09 # Parent d6c3ecec1d34c8ac45f2ffd40aae8faffc2e7166# Parent e5b263ac8c2e0d2a9bfe702a43ed1e98d9baf97e Merge diff -r d6c3ecec1d34 -r ff3dd31ee8c2 hotspot/src/share/vm/services/diagnosticCommand.cpp --- a/hotspot/src/share/vm/services/diagnosticCommand.cpp Fri Oct 28 12:28:46 2016 -0700 +++ b/hotspot/src/share/vm/services/diagnosticCommand.cpp Fri Oct 28 19:33:22 2016 +0000 @@ -551,11 +551,6 @@ } void ClassStatsDCmd::execute(DCmdSource source, TRAPS) { - if (!UnlockDiagnosticVMOptions) { - output()->print_cr("GC.class_stats command requires -XX:+UnlockDiagnosticVMOptions"); - return; - } - VM_GC_HeapInspection heapop(output(), true /* request_full_gc */); heapop.set_csv_format(_csv.value()); @@ -996,8 +991,8 @@ {} void TouchedMethodsDCmd::execute(DCmdSource source, TRAPS) { - if (!UnlockDiagnosticVMOptions) { - output()->print_cr("VM.touched_methods command requires -XX:+UnlockDiagnosticVMOptions"); + if (!LogTouchedMethods) { + output()->print_cr("VM.print_touched_methods command requires -XX:+LogTouchedMethods"); return; } VM_DumpTouchedMethods dumper(output()); diff -r d6c3ecec1d34 -r ff3dd31ee8c2 hotspot/src/share/vm/services/diagnosticCommand.hpp --- a/hotspot/src/share/vm/services/diagnosticCommand.hpp Fri Oct 28 12:28:46 2016 -0700 +++ b/hotspot/src/share/vm/services/diagnosticCommand.hpp Fri Oct 28 19:33:22 2016 +0000 @@ -386,7 +386,7 @@ return "GC.class_stats"; } static const char* description() { - return "Provide statistics about Java class meta data. Requires -XX:+UnlockDiagnosticVMOptions."; + return "Provide statistics about Java class meta data."; } static const char* impact() { return "High: Depends on Java heap size and content."; diff -r d6c3ecec1d34 -r ff3dd31ee8c2 hotspot/test/serviceability/sa/TestInstanceKlassSize.java --- a/hotspot/test/serviceability/sa/TestInstanceKlassSize.java Fri Oct 28 12:28:46 2016 -0700 +++ b/hotspot/test/serviceability/sa/TestInstanceKlassSize.java Fri Oct 28 19:33:22 2016 +0000 @@ -98,7 +98,6 @@ OutputAnalyzer output = null; try { List vmArgs = new ArrayList(); - vmArgs.add("-XX:+UnlockDiagnosticVMOptions"); vmArgs.add("-XX:+UsePerfData"); vmArgs.addAll(Utils.getVmOptions()); app = LingeredApp.startApp(vmArgs); diff -r d6c3ecec1d34 -r ff3dd31ee8c2 hotspot/test/serviceability/sa/TestInstanceKlassSizeForInterface.java --- a/hotspot/test/serviceability/sa/TestInstanceKlassSizeForInterface.java Fri Oct 28 12:28:46 2016 -0700 +++ b/hotspot/test/serviceability/sa/TestInstanceKlassSizeForInterface.java Fri Oct 28 19:33:22 2016 +0000 @@ -45,7 +45,6 @@ * --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.debugger=ALL-UNNAMED * TestInstanceKlassSizeForInterface.java * @run main/othervm - * -XX:+UnlockDiagnosticVMOptions * --add-modules=jdk.hotspot.agent * --add-exports=jdk.hotspot.agent/sun.jvm.hotspot=ALL-UNNAMED * --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.utilities=ALL-UNNAMED