# HG changeset patch # User bpittore # Date 1360357697 18000 # Node ID 619e0eebeb864420ed5c68a43f195a2895132c9a # Parent abc47e8830a03b792354e8c58705654fef072b33# Parent c8bc1070b876ab209fdbfabd88488523d4e76b6f Merge diff -r abc47e8830a0 -r 619e0eebeb86 hotspot/src/share/vm/runtime/arguments.cpp --- a/hotspot/src/share/vm/runtime/arguments.cpp Fri Feb 08 08:16:00 2013 -0800 +++ b/hotspot/src/share/vm/runtime/arguments.cpp Fri Feb 08 16:08:17 2013 -0500 @@ -2480,7 +2480,12 @@ } // Out of the box management support if (match_option(option, "-Dcom.sun.management", &tail)) { +#if INCLUDE_MANAGEMENT FLAG_SET_CMDLINE(bool, ManagementServer, true); +#else + vm_exit_during_initialization( + "-Dcom.sun.management is not supported in this VM.", NULL); +#endif } // -Xint } else if (match_option(option, "-Xint", &tail)) { @@ -2826,6 +2831,11 @@ // away and will cause VM initialization failures! warning("-XX:+UseVMInterruptibleIO is obsolete and will be removed in a future release."); FLAG_SET_CMDLINE(bool, UseVMInterruptibleIO, true); +#if !INCLUDE_MANAGEMENT + } else if (match_option(option, "-XX:+ManagementServer", &tail)) { + vm_exit_during_initialization( + "ManagementServer is not supported in this VM.", NULL); +#endif // INCLUDE_MANAGEMENT } else if (match_option(option, "-XX:", &tail)) { // -XX:xxxx // Skip -XX:Flags= since that case has already been handled if (strncmp(tail, "Flags=", strlen("Flags=")) != 0) {