< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahGenerationalHeap.cpp

Print this page
@@ -51,25 +51,10 @@
  public:
    static void print() {
      ShenandoahGenerationalInitLogger logger;
      logger.print_all();
    }
- 
-   void print_heap() override {
-     ShenandoahInitLogger::print_heap();
- 
-     ShenandoahGenerationalHeap* heap = ShenandoahGenerationalHeap::heap();
- 
-     ShenandoahYoungGeneration* young = heap->young_generation();
-     log_info(gc, init)("Young Generation Soft Size: " EXACTFMT, EXACTFMTARGS(young->soft_max_capacity()));
-     log_info(gc, init)("Young Generation Max: " EXACTFMT, EXACTFMTARGS(young->max_capacity()));
- 
-     ShenandoahOldGeneration* old = heap->old_generation();
-     log_info(gc, init)("Old Generation Soft Size: " EXACTFMT, EXACTFMTARGS(old->soft_max_capacity()));
-     log_info(gc, init)("Old Generation Max: " EXACTFMT, EXACTFMTARGS(old->max_capacity()));
-   }
- 
  protected:
    void print_gc_specific() override {
      ShenandoahInitLogger::print_gc_specific();
  
      ShenandoahGenerationalHeap* heap = ShenandoahGenerationalHeap::heap();

@@ -139,12 +124,12 @@
    size_t initial_capacity_young = _generation_sizer.max_young_size();
    size_t max_capacity_young = _generation_sizer.max_young_size();
    size_t initial_capacity_old = max_capacity() - max_capacity_young;
    size_t max_capacity_old = max_capacity() - initial_capacity_young;
  
-   _young_generation = new ShenandoahYoungGeneration(max_workers(), max_capacity_young, initial_capacity_young);
-   _old_generation = new ShenandoahOldGeneration(max_workers(), max_capacity_old, initial_capacity_old);
+   _young_generation = new ShenandoahYoungGeneration(max_workers(), max_capacity_young);
+   _old_generation = new ShenandoahOldGeneration(max_workers(), max_capacity_old);
    _young_generation->initialize_heuristics(mode());
    _old_generation->initialize_heuristics(mode());
  }
  
  void ShenandoahGenerationalHeap::initialize_serviceability() {
< prev index next >