Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/arguments.cpp @ 8081:579f6adb7f51
8003539: Minimal VM don't react to -Dcom.sun.management and -XX:+ManagementServer
Summary: A warning message should be displayed if these options are used with the Minimal VM.
Reviewed-by: dholmes, dsamersoff
author | jprovino |
---|---|
date | Tue, 05 Feb 2013 13:32:34 -0500 |
parents | 8391fdd36e1f |
children | 9e2da96f9976 |
comparison
equal
deleted
inserted
replaced
8002:8391fdd36e1f | 8081:579f6adb7f51 |
---|---|
2456 if (!add_property(tail)) { | 2456 if (!add_property(tail)) { |
2457 return JNI_ENOMEM; | 2457 return JNI_ENOMEM; |
2458 } | 2458 } |
2459 // Out of the box management support | 2459 // Out of the box management support |
2460 if (match_option(option, "-Dcom.sun.management", &tail)) { | 2460 if (match_option(option, "-Dcom.sun.management", &tail)) { |
2461 #if INCLUDE_MANAGEMENT | |
2461 FLAG_SET_CMDLINE(bool, ManagementServer, true); | 2462 FLAG_SET_CMDLINE(bool, ManagementServer, true); |
2463 #else | |
2464 vm_exit_during_initialization( | |
2465 "-Dcom.sun.management is not supported in this VM.", NULL); | |
2466 #endif | |
2462 } | 2467 } |
2463 // -Xint | 2468 // -Xint |
2464 } else if (match_option(option, "-Xint", &tail)) { | 2469 } else if (match_option(option, "-Xint", &tail)) { |
2465 set_mode_flags(_int); | 2470 set_mode_flags(_int); |
2466 // -Xmixed | 2471 // -Xmixed |
2805 } else if (match_option(option, "-XX:+UseVMInterruptibleIO", &tail)) { | 2810 } else if (match_option(option, "-XX:+UseVMInterruptibleIO", &tail)) { |
2806 // NOTE! In JDK 9, the UseVMInterruptibleIO flag will completely go | 2811 // NOTE! In JDK 9, the UseVMInterruptibleIO flag will completely go |
2807 // away and will cause VM initialization failures! | 2812 // away and will cause VM initialization failures! |
2808 warning("-XX:+UseVMInterruptibleIO is obsolete and will be removed in a future release."); | 2813 warning("-XX:+UseVMInterruptibleIO is obsolete and will be removed in a future release."); |
2809 FLAG_SET_CMDLINE(bool, UseVMInterruptibleIO, true); | 2814 FLAG_SET_CMDLINE(bool, UseVMInterruptibleIO, true); |
2815 #if !INCLUDE_MANAGEMENT | |
2816 } else if (match_option(option, "-XX:+ManagementServer", &tail)) { | |
2817 vm_exit_during_initialization( | |
2818 "ManagementServer is not supported in this VM.", NULL); | |
2819 #endif // INCLUDE_MANAGEMENT | |
2810 } else if (match_option(option, "-XX:", &tail)) { // -XX:xxxx | 2820 } else if (match_option(option, "-XX:", &tail)) { // -XX:xxxx |
2811 // Skip -XX:Flags= since that case has already been handled | 2821 // Skip -XX:Flags= since that case has already been handled |
2812 if (strncmp(tail, "Flags=", strlen("Flags=")) != 0) { | 2822 if (strncmp(tail, "Flags=", strlen("Flags=")) != 0) { |
2813 if (!process_argument(tail, args->ignoreUnrecognized, origin)) { | 2823 if (!process_argument(tail, args->ignoreUnrecognized, origin)) { |
2814 return JNI_EINVAL; | 2824 return JNI_EINVAL; |