--- old/src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp 2013-08-28 14:34:28.976178787 +0200 +++ new/src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.hpp 2013-08-28 14:34:28.920178789 +0200 @@ -86,6 +86,11 @@ set_alignment(_old_gen_alignment, intra_heap_alignment()); } + // return the (conservative) maximum heap alignment + static size_t max_heap_alignment() { + return MAX2(os::max_page_size(), intra_heap_alignment()); + } + // For use by VM operations enum CollectionType { Scavenge, @@ -122,7 +127,7 @@ // The alignment used for eden and survivors within the young gen // and for boundary between young gen and old gen. - size_t intra_heap_alignment() const { return 64 * K * HeapWordSize; } + static size_t intra_heap_alignment() { return 64 * K * HeapWordSize; } size_t capacity() const; size_t used() const;