--- old/src/share/vm/gc_implementation/g1/heapRegion.cpp 2013-06-04 17:03:23.151740623 +0200 +++ new/src/share/vm/gc_implementation/g1/heapRegion.cpp 2013-06-04 17:03:22.991740619 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 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 @@ -286,6 +286,10 @@ // many regions in the heap (based on the min heap size). #define TARGET_REGION_NUMBER 2048 +size_t HeapRegion::max_heap_alignment() { + return (size_t) MAX_REGION_SIZE; +} + void HeapRegion::setup_heap_region_size(uintx min_heap_size) { // region_size in bytes uintx region_size = G1HeapRegionSize;