--- old/src/share/vm/memory/collectorPolicy.hpp 2013-08-29 16:01:48.438666386 +0200 +++ new/src/share/vm/memory/collectorPolicy.hpp 2013-08-29 16:01:48.350666389 +0200 @@ -98,6 +98,9 @@ {} public: + // return maximum heap alignment that may be imposed by the policy + static size_t compute_largest_heap_alignment(); + void set_min_alignment(size_t align) { _min_alignment = align; } size_t min_alignment() { return _min_alignment; } void set_max_alignment(size_t align) { _max_alignment = align; } @@ -234,9 +237,6 @@ // Try to allocate space by expanding the heap. virtual HeapWord* expand_heap_and_allocate(size_t size, bool is_tlab); - // compute max heap alignment - size_t compute_max_alignment(); - // Scale the base_size by NewRation according to // result = base_size / (NewRatio + 1) // and align by min_alignment()