src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hs-gc-reduce Sdiff src/share/vm/runtime

src/share/vm/runtime/arguments.cpp

Print this page




1776     jio_fprintf(defaultStream::error_stream(),
1777                 "Conflicting collector combinations in option list; "
1778                 "please refer to the release notes for the combinations "
1779                 "allowed\n");
1780     status = false;
1781   }
1782 
1783   return status;
1784 }
1785 
1786 void Arguments::check_deprecated_gcs() {
1787   if (UseConcMarkSweepGC && !UseParNewGC) {
1788     warning("Using the DefNew young collector with the CMS collector is deprecated");
1789   }
1790 
1791   if (UseParNewGC && !UseConcMarkSweepGC) {
1792     // !UseConcMarkSweepGC means that we are using serial old gc. Unfortunately we don't
1793     // set up UseSerialGC properly, so that can't be used in the check here.
1794     warning("Using the ParNew young collector with the Serial old collector is deprecated");
1795   }




1796 }
1797 
1798 // Check stack pages settings
1799 bool Arguments::check_stack_pages()
1800 {
1801   bool status = true;
1802   status = status && verify_min_value(StackYellowPages, 1, "StackYellowPages");
1803   status = status && verify_min_value(StackRedPages, 1, "StackRedPages");
1804   // greater stack shadow pages can't generate instruction to bang stack
1805   status = status && verify_interval(StackShadowPages, 1, 50, "StackShadowPages");
1806   return status;
1807 }
1808 
1809 // Check the consistency of vm_init_args
1810 bool Arguments::check_vm_args_consistency() {
1811   // Method for adding checks for flag consistency.
1812   // The intent is to warn the user of all possible conflicts,
1813   // before returning an error.
1814   // Note: Needs platform-dependent factoring.
1815   bool status = true;




1776     jio_fprintf(defaultStream::error_stream(),
1777                 "Conflicting collector combinations in option list; "
1778                 "please refer to the release notes for the combinations "
1779                 "allowed\n");
1780     status = false;
1781   }
1782 
1783   return status;
1784 }
1785 
1786 void Arguments::check_deprecated_gcs() {
1787   if (UseConcMarkSweepGC && !UseParNewGC) {
1788     warning("Using the DefNew young collector with the CMS collector is deprecated");
1789   }
1790 
1791   if (UseParNewGC && !UseConcMarkSweepGC) {
1792     // !UseConcMarkSweepGC means that we are using serial old gc. Unfortunately we don't
1793     // set up UseSerialGC properly, so that can't be used in the check here.
1794     warning("Using the ParNew young collector with the Serial old collector is deprecated");
1795   }
1796 
1797   if (CMSIncrementalMode) {
1798     warning("Using incremental CMS is deprecated");
1799   }
1800 }
1801 
1802 // Check stack pages settings
1803 bool Arguments::check_stack_pages()
1804 {
1805   bool status = true;
1806   status = status && verify_min_value(StackYellowPages, 1, "StackYellowPages");
1807   status = status && verify_min_value(StackRedPages, 1, "StackRedPages");
1808   // greater stack shadow pages can't generate instruction to bang stack
1809   status = status && verify_interval(StackShadowPages, 1, 50, "StackShadowPages");
1810   return status;
1811 }
1812 
1813 // Check the consistency of vm_init_args
1814 bool Arguments::check_vm_args_consistency() {
1815   // Method for adding checks for flag consistency.
1816   // The intent is to warn the user of all possible conflicts,
1817   // before returning an error.
1818   // Note: Needs platform-dependent factoring.
1819   bool status = true;


src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File