--- old/src/share/vm/memory/genCollectedHeap.hpp 2013-06-04 17:03:27.779740746 +0200 +++ new/src/share/vm/memory/genCollectedHeap.hpp 2013-06-04 17:03:27.583740741 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -148,6 +148,11 @@ return gen_policy()->size_policy(); } + // return the (conservative) maximum heap alignment + static size_t max_heap_alignment() { + return Generation::GenGrain; + } + size_t capacity() const; size_t used() const;