1801 "please refer to the release notes for the combinations " 1802 "allowed\n"); 1803 status = false; 1804 } 1805 1806 return status; 1807 } 1808 1809 void Arguments::check_deprecated_gcs() { 1810 if (UseConcMarkSweepGC && !UseParNewGC) { 1811 warning("Using the DefNew young collector with the CMS collector is deprecated " 1812 "and will likely be removed in a future release"); 1813 } 1814 1815 if (UseParNewGC && !UseConcMarkSweepGC) { 1816 // !UseConcMarkSweepGC means that we are using serial old gc. Unfortunately we don't 1817 // set up UseSerialGC properly, so that can't be used in the check here. 1818 warning("Using the ParNew young collector with the Serial old collector is deprecated " 1819 "and will likely be removed in a future release"); 1820 } 1821 1822 if (CMSIncrementalMode) { 1823 warning("Using incremental CMS is deprecated and will likely be removed in a future release"); 1824 } 1825 } 1826 1827 void Arguments::check_deprecated_gc_flags() { 1828 if (FLAG_IS_CMDLINE(MaxGCMinorPauseMillis)) { 1829 warning("Using MaxGCMinorPauseMillis as minor pause goal is deprecated" 1830 "and will likely be removed in future release"); 1831 } 1832 } 1833 1834 // Check stack pages settings 1835 bool Arguments::check_stack_pages() 1836 { 1837 bool status = true; 1838 status = status && verify_min_value(StackYellowPages, 1, "StackYellowPages"); 1839 status = status && verify_min_value(StackRedPages, 1, "StackRedPages"); 1840 // greater stack shadow pages can't generate instruction to bang stack 1841 status = status && verify_interval(StackShadowPages, 1, 50, "StackShadowPages"); 1842 return status; 1843 } 1844 1845 // Check the consistency of vm_init_args 1846 bool Arguments::check_vm_args_consistency() { 1847 // Method for adding checks for flag consistency. 1848 // The intent is to warn the user of all possible conflicts, 1849 // before returning an error. 1850 // Note: Needs platform-dependent factoring. 1851 bool status = true; | 1801 "please refer to the release notes for the combinations " 1802 "allowed\n"); 1803 status = false; 1804 } 1805 1806 return status; 1807 } 1808 1809 void Arguments::check_deprecated_gcs() { 1810 if (UseConcMarkSweepGC && !UseParNewGC) { 1811 warning("Using the DefNew young collector with the CMS collector is deprecated " 1812 "and will likely be removed in a future release"); 1813 } 1814 1815 if (UseParNewGC && !UseConcMarkSweepGC) { 1816 // !UseConcMarkSweepGC means that we are using serial old gc. Unfortunately we don't 1817 // set up UseSerialGC properly, so that can't be used in the check here. 1818 warning("Using the ParNew young collector with the Serial old collector is deprecated " 1819 "and will likely be removed in a future release"); 1820 } 1821 } 1822 1823 void Arguments::check_deprecated_gc_flags() { 1824 if (FLAG_IS_CMDLINE(MaxGCMinorPauseMillis)) { 1825 warning("Using MaxGCMinorPauseMillis as minor pause goal for adaptive size policy is deprecated" 1826 "and will likely be removed in future release"); 1827 } 1828 if (CMSIncrementalMode) { 1829 warning("Using incremental CMS is deprecated and will likely be removed in a future release"); 1830 } 1831 } 1832 1833 // Check stack pages settings 1834 bool Arguments::check_stack_pages() 1835 { 1836 bool status = true; 1837 status = status && verify_min_value(StackYellowPages, 1, "StackYellowPages"); 1838 status = status && verify_min_value(StackRedPages, 1, "StackRedPages"); 1839 // greater stack shadow pages can't generate instruction to bang stack 1840 status = status && verify_interval(StackShadowPages, 1, 50, "StackShadowPages"); 1841 return status; 1842 } 1843 1844 // Check the consistency of vm_init_args 1845 bool Arguments::check_vm_args_consistency() { 1846 // Method for adding checks for flag consistency. 1847 // The intent is to warn the user of all possible conflicts, 1848 // before returning an error. 1849 // Note: Needs platform-dependent factoring. 1850 bool status = true; |