< prev index next >

src/share/vm/runtime/arguments.cpp

Print this page
rev 7318 : imported patch foreground


2185         "and will likely be removed in a future release");
2186   }
2187 
2188   if (UseParNewGC && !UseConcMarkSweepGC) {
2189     // !UseConcMarkSweepGC means that we are using serial old gc. Unfortunately we don't
2190     // set up UseSerialGC properly, so that can't be used in the check here.
2191     warning("Using the ParNew young collector with the Serial old collector is deprecated "
2192         "and will likely be removed in a future release");
2193   }
2194 }
2195 
2196 void Arguments::check_deprecated_gc_flags() {
2197   if (FLAG_IS_CMDLINE(MaxGCMinorPauseMillis)) {
2198     warning("Using MaxGCMinorPauseMillis as minor pause goal is deprecated"
2199             "and will likely be removed in future release");
2200   }
2201   if (FLAG_IS_CMDLINE(DefaultMaxRAMFraction)) {
2202     warning("DefaultMaxRAMFraction is deprecated and will likely be removed in a future release. "
2203         "Use MaxRAMFraction instead.");
2204   }
2205   if (FLAG_IS_CMDLINE(UseCMSCompactAtFullCollection)) {
2206     warning("UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.");
2207   }
2208   if (FLAG_IS_CMDLINE(CMSFullGCsBeforeCompaction)) {
2209     warning("CMSFullGCsBeforeCompaction is deprecated and will likely be removed in a future release.");
2210   }
2211   if (FLAG_IS_CMDLINE(UseCMSCollectionPassing)) {
2212     warning("UseCMSCollectionPassing is deprecated and will likely be removed in a future release.");
2213   }
2214 }
2215 
2216 // Check stack pages settings
2217 bool Arguments::check_stack_pages()
2218 {
2219   bool status = true;
2220   status = status && verify_min_value(StackYellowPages, 1, "StackYellowPages");
2221   status = status && verify_min_value(StackRedPages, 1, "StackRedPages");
2222   // greater stack shadow pages can't generate instruction to bang stack
2223   status = status && verify_interval(StackShadowPages, 1, 50, "StackShadowPages");
2224   return status;
2225 }
2226 
2227 // Check the consistency of vm_init_args
2228 bool Arguments::check_vm_args_consistency() {
2229   // Method for adding checks for flag consistency.
2230   // The intent is to warn the user of all possible conflicts,
2231   // before returning an error.
2232   // Note: Needs platform-dependent factoring.
2233   bool status = true;




2185         "and will likely be removed in a future release");
2186   }
2187 
2188   if (UseParNewGC && !UseConcMarkSweepGC) {
2189     // !UseConcMarkSweepGC means that we are using serial old gc. Unfortunately we don't
2190     // set up UseSerialGC properly, so that can't be used in the check here.
2191     warning("Using the ParNew young collector with the Serial old collector is deprecated "
2192         "and will likely be removed in a future release");
2193   }
2194 }
2195 
2196 void Arguments::check_deprecated_gc_flags() {
2197   if (FLAG_IS_CMDLINE(MaxGCMinorPauseMillis)) {
2198     warning("Using MaxGCMinorPauseMillis as minor pause goal is deprecated"
2199             "and will likely be removed in future release");
2200   }
2201   if (FLAG_IS_CMDLINE(DefaultMaxRAMFraction)) {
2202     warning("DefaultMaxRAMFraction is deprecated and will likely be removed in a future release. "
2203         "Use MaxRAMFraction instead.");
2204   }









2205 }
2206 
2207 // Check stack pages settings
2208 bool Arguments::check_stack_pages()
2209 {
2210   bool status = true;
2211   status = status && verify_min_value(StackYellowPages, 1, "StackYellowPages");
2212   status = status && verify_min_value(StackRedPages, 1, "StackRedPages");
2213   // greater stack shadow pages can't generate instruction to bang stack
2214   status = status && verify_interval(StackShadowPages, 1, 50, "StackShadowPages");
2215   return status;
2216 }
2217 
2218 // Check the consistency of vm_init_args
2219 bool Arguments::check_vm_args_consistency() {
2220   // Method for adding checks for flag consistency.
2221   // The intent is to warn the user of all possible conflicts,
2222   // before returning an error.
2223   // Note: Needs platform-dependent factoring.
2224   bool status = true;


< prev index next >