src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp

changeset 448
183f41cf8bfe
parent 435
a61af66fc99e
child 576
fcbfc50865ab
     1.1 --- a/src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp	Fri Feb 29 14:42:56 2008 -0800
     1.2 +++ b/src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp	Sun Mar 02 16:10:12 2008 -0800
     1.3 @@ -58,9 +58,9 @@
     1.4  
     1.5   public:
     1.6    ParallelScavengeHeap() : CollectedHeap() {
     1.7 -    set_alignment(_perm_gen_alignment, intra_generation_alignment());
     1.8 -    set_alignment(_young_gen_alignment, intra_generation_alignment());
     1.9 -    set_alignment(_old_gen_alignment, intra_generation_alignment());
    1.10 +    set_alignment(_perm_gen_alignment, intra_heap_alignment());
    1.11 +    set_alignment(_young_gen_alignment, intra_heap_alignment());
    1.12 +    set_alignment(_old_gen_alignment, intra_heap_alignment());
    1.13    }
    1.14  
    1.15    // For use by VM operations
    1.16 @@ -92,14 +92,14 @@
    1.17  
    1.18    void post_initialize();
    1.19    void update_counters();
    1.20 -
    1.21    // The alignment used for the various generations.
    1.22    size_t perm_gen_alignment()  const { return _perm_gen_alignment; }
    1.23    size_t young_gen_alignment() const { return _young_gen_alignment; }
    1.24    size_t old_gen_alignment()  const { return _old_gen_alignment; }
    1.25  
    1.26 -  // The alignment used for eden and survivors within the young gen.
    1.27 -  size_t intra_generation_alignment() const { return 64 * K; }
    1.28 +  // The alignment used for eden and survivors within the young gen
    1.29 +  // and for boundary between young gen and old gen.
    1.30 +  size_t intra_heap_alignment() const { return 64 * K; }
    1.31  
    1.32    size_t capacity() const;
    1.33    size_t used() const;
    1.34 @@ -217,6 +217,6 @@
    1.35  inline size_t ParallelScavengeHeap::set_alignment(size_t& var, size_t val)
    1.36  {
    1.37    assert(is_power_of_2((intptr_t)val), "must be a power of 2");
    1.38 -  var = round_to(val, intra_generation_alignment());
    1.39 +  var = round_to(val, intra_heap_alignment());
    1.40    return var;
    1.41  }

mercurial