8224673: Adjust permission for delayed starting of debugging
Summary: Changed permission from monitor to control
Reviewed-by: sspitsyn, clanger
--- a/src/hotspot/share/services/diagnosticCommand.hpp Tue Jun 25 11:43:36 2019 +0200
+++ b/src/hotspot/share/services/diagnosticCommand.hpp Fri May 24 04:18:18 2019 -0700
@@ -880,7 +880,7 @@
return "High: Switches the VM into Java debug mode.";
}
static const JavaPermission permission() {
- JavaPermission p = { "java.lang.management.ManagementPermission", "monitor", NULL };
+ JavaPermission p = { "java.lang.management.ManagementPermission", "control", NULL };
return p;
}
static int num_arguments() { return 0; }