< prev index next >

src/share/vm/gc/parallel/generationSizer.hpp

Print this page




  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_GC_PARALLEL_GENERATIONSIZER_HPP
  26 #define SHARE_VM_GC_PARALLEL_GENERATIONSIZER_HPP
  27 
  28 #include "gc/shared/collectorPolicy.hpp"
  29 
  30 // There is a nice batch of tested generation sizing code in
  31 // GenCollectorPolicy. Lets reuse it!
  32 
  33 class GenerationSizer : public GenCollectorPolicy {
  34  private:
  35 
  36   void trace_gen_sizes(const char* const str);
  37 
  38   // The alignment used for boundary between young gen and old gen
  39   static size_t default_gen_alignment() { return 64 * K * HeapWordSize; }
  40 
  41  protected:
  42 
  43   void initialize_alignments();
  44   void initialize_flags();
  45   void initialize_size_info();
  46 };
  47 #endif // SHARE_VM_GC_PARALLEL_GENERATIONSIZER_HPP


  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_GC_PARALLEL_GENERATIONSIZER_HPP
  26 #define SHARE_VM_GC_PARALLEL_GENERATIONSIZER_HPP
  27 
  28 #include "gc/shared/collectorPolicy.hpp"
  29 
  30 // There is a nice batch of tested generation sizing code in
  31 // GenCollectorPolicy. Lets reuse it!
  32 
  33 class GenerationSizer : public GenCollectorPolicy {
  34  private:
  35 


  36   // The alignment used for boundary between young gen and old gen
  37   static size_t default_gen_alignment() { return 64 * K * HeapWordSize; }
  38 
  39  protected:
  40 
  41   void initialize_alignments();
  42   void initialize_flags();
  43   void initialize_size_info();
  44 };
  45 #endif // SHARE_VM_GC_PARALLEL_GENERATIONSIZER_HPP
< prev index next >