hotspot/src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp
changeset 19986 33d188c66ed9
parent 18025 b7bcf7497f93
child 21560 b3ae3ba25ebb
equal deleted inserted replaced
19983:82c1a95ae314 19986:33d188c66ed9
    84     _death_march_count = 0;
    84     _death_march_count = 0;
    85     set_alignment(_young_gen_alignment, intra_heap_alignment());
    85     set_alignment(_young_gen_alignment, intra_heap_alignment());
    86     set_alignment(_old_gen_alignment, intra_heap_alignment());
    86     set_alignment(_old_gen_alignment, intra_heap_alignment());
    87   }
    87   }
    88 
    88 
       
    89   // Return the (conservative) maximum heap alignment
       
    90   static size_t conservative_max_heap_alignment() {
       
    91     return intra_heap_alignment();
       
    92   }
       
    93 
    89   // For use by VM operations
    94   // For use by VM operations
    90   enum CollectionType {
    95   enum CollectionType {
    91     Scavenge,
    96     Scavenge,
    92     MarkSweep
    97     MarkSweep
    93   };
    98   };
   120   size_t young_gen_alignment() const { return _young_gen_alignment; }
   125   size_t young_gen_alignment() const { return _young_gen_alignment; }
   121   size_t old_gen_alignment()  const { return _old_gen_alignment; }
   126   size_t old_gen_alignment()  const { return _old_gen_alignment; }
   122 
   127 
   123   // The alignment used for eden and survivors within the young gen
   128   // The alignment used for eden and survivors within the young gen
   124   // and for boundary between young gen and old gen.
   129   // and for boundary between young gen and old gen.
   125   size_t intra_heap_alignment() const { return 64 * K * HeapWordSize; }
   130   static size_t intra_heap_alignment() { return 64 * K * HeapWordSize; }
   126 
   131 
   127   size_t capacity() const;
   132   size_t capacity() const;
   128   size_t used() const;
   133   size_t used() const;
   129 
   134 
   130   // Return "true" if all generations have reached the
   135   // Return "true" if all generations have reached the