hotspot/src/share/vm/gc_implementation/parallelScavenge/asPSYoungGen.cpp
changeset 24092 e274d864545a
parent 22234 da823d78ad65
child 24424 2658d7834c6e
equal deleted inserted replaced
23859:c8b7bd180417 24092:e274d864545a
   110     // for reasons the "increment" fraction is used.
   110     // for reasons the "increment" fraction is used.
   111     PSAdaptiveSizePolicy* policy = heap->size_policy();
   111     PSAdaptiveSizePolicy* policy = heap->size_policy();
   112     size_t result = policy->eden_increment_aligned_down(max_contraction);
   112     size_t result = policy->eden_increment_aligned_down(max_contraction);
   113     size_t result_aligned = align_size_down(result, gen_alignment);
   113     size_t result_aligned = align_size_down(result, gen_alignment);
   114     if (PrintAdaptiveSizePolicy && Verbose) {
   114     if (PrintAdaptiveSizePolicy && Verbose) {
   115       gclog_or_tty->print_cr("ASPSYoungGen::available_for_contraction: %d K",
   115       gclog_or_tty->print_cr("ASPSYoungGen::available_for_contraction: " SIZE_FORMAT " K",
   116         result_aligned/K);
   116         result_aligned/K);
   117       gclog_or_tty->print_cr("  max_contraction %d K", max_contraction/K);
   117       gclog_or_tty->print_cr("  max_contraction " SIZE_FORMAT " K", max_contraction/K);
   118       gclog_or_tty->print_cr("  eden_avail %d K", eden_avail/K);
   118       gclog_or_tty->print_cr("  eden_avail " SIZE_FORMAT " K", eden_avail/K);
   119       gclog_or_tty->print_cr("  gen_avail %d K", gen_avail/K);
   119       gclog_or_tty->print_cr("  gen_avail " SIZE_FORMAT " K", gen_avail/K);
   120     }
   120     }
   121     return result_aligned;
   121     return result_aligned;
   122   }
   122   }
   123 
   123 
   124   return 0;
   124   return 0;