Print this page
rev 3618 : 7193946: Move warnings associated with UseMemSetInBOT flag
Summary: The warnings associated with the UseMemSetInBOT flag are duplicated in CMS and G1. The separate warnings have been removed and single instance of the warning has been placed in a common location.
Reviewed-by:

Split Close
Expand all
Collapse all
          --- old/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
          +++ new/src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp
↓ open down ↓ 781 lines elided ↑ open up ↑
 782  782      // If class unloading is disabled we want to include all classes into the root set.
 783  783      add_root_scanning_option(SharedHeap::SO_AllClasses);
 784  784    } else {
 785  785      add_root_scanning_option(SharedHeap::SO_SystemClasses);
 786  786    }
 787  787  
 788  788    NOT_PRODUCT(_overflow_counter = CMSMarkStackOverflowInterval;)
 789  789    _gc_counters = new CollectorCounters("CMS", 1);
 790  790    _completed_initialization = true;
 791  791    _inter_sweep_timer.start();  // start of time
 792      -#ifdef SPARC
 793      -  // Issue a stern warning, but allow use for experimentation and debugging.
 794      -  if (VM_Version::is_sun4v() && UseMemSetInBOT) {
 795      -    assert(!FLAG_IS_DEFAULT(UseMemSetInBOT), "Error");
 796      -    warning("Experimental flag -XX:+UseMemSetInBOT is known to cause instability"
 797      -            " on sun4v; please understand that you are using at your own risk!");
 798      -  }
 799      -#endif
 800  792  }
 801  793  
 802  794  const char* ConcurrentMarkSweepGeneration::name() const {
 803  795    return "concurrent mark-sweep generation";
 804  796  }
 805  797  void ConcurrentMarkSweepGeneration::update_counters() {
 806  798    if (UsePerfData) {
 807  799      _space_counters->update_all();
 808  800      _gen_counters->update_all();
 809  801    }
↓ open down ↓ 8494 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX