Mercurial > hg > truffle
comparison src/share/vm/runtime/arguments.cpp @ 6878:85916677fc22
7188233: UseVMInterruptibleIO flag deprecate for JDK8
Summary: The -XX:+UseVMInterruptibleIO flag is deprecated for JDK8. The flag will still enable Interruptible IO on Solaris, but users will get a warning.
Reviewed-by: dholmes, acorn, alanb
Contributed-by: harold.seigel@oracle.com
author | coleenp |
---|---|
date | Thu, 18 Oct 2012 13:08:13 -0400 |
parents | 5876f980ea19 |
children | 8ebcedb7604d |
comparison
equal
deleted
inserted
replaced
6872:7b5885dadbdc | 6878:85916677fc22 |
---|---|
2769 option->optionString); | 2769 option->optionString); |
2770 describe_range_error(errcode); | 2770 describe_range_error(errcode); |
2771 return JNI_EINVAL; | 2771 return JNI_EINVAL; |
2772 } | 2772 } |
2773 FLAG_SET_CMDLINE(uintx, MaxDirectMemorySize, max_direct_memory_size); | 2773 FLAG_SET_CMDLINE(uintx, MaxDirectMemorySize, max_direct_memory_size); |
2774 } else if (match_option(option, "-XX:+UseVMInterruptibleIO", &tail)) { | |
2775 // NOTE! In JDK 9, the UseVMInterruptibleIO flag will completely go | |
2776 // away and will cause VM initialization failures! | |
2777 warning("-XX:+UseVMInterruptibleIO is obsolete and will be removed in a future release."); | |
2778 FLAG_SET_CMDLINE(bool, UseVMInterruptibleIO, true); | |
2774 } else if (match_option(option, "-XX:", &tail)) { // -XX:xxxx | 2779 } else if (match_option(option, "-XX:", &tail)) { // -XX:xxxx |
2775 // Skip -XX:Flags= since that case has already been handled | 2780 // Skip -XX:Flags= since that case has already been handled |
2776 if (strncmp(tail, "Flags=", strlen("Flags=")) != 0) { | 2781 if (strncmp(tail, "Flags=", strlen("Flags=")) != 0) { |
2777 if (!process_argument(tail, args->ignoreUnrecognized, origin)) { | 2782 if (!process_argument(tail, args->ignoreUnrecognized, origin)) { |
2778 return JNI_EINVAL; | 2783 return JNI_EINVAL; |
2784 } | 2789 } |
2785 } | 2790 } |
2786 | 2791 |
2787 // Change the default value for flags which have different default values | 2792 // Change the default value for flags which have different default values |
2788 // when working with older JDKs. | 2793 // when working with older JDKs. |
2789 if (JDK_Version::current().compare_major(6) <= 0 && | |
2790 FLAG_IS_DEFAULT(UseVMInterruptibleIO)) { | |
2791 FLAG_SET_DEFAULT(UseVMInterruptibleIO, true); | |
2792 } | |
2793 #ifdef LINUX | 2794 #ifdef LINUX |
2794 if (JDK_Version::current().compare_major(6) <= 0 && | 2795 if (JDK_Version::current().compare_major(6) <= 0 && |
2795 FLAG_IS_DEFAULT(UseLinuxPosixThreadCPUClocks)) { | 2796 FLAG_IS_DEFAULT(UseLinuxPosixThreadCPUClocks)) { |
2796 FLAG_SET_DEFAULT(UseLinuxPosixThreadCPUClocks, false); | 2797 FLAG_SET_DEFAULT(UseLinuxPosixThreadCPUClocks, false); |
2797 } | 2798 } |