--- old/src/hotspot/share/gc/z/zHeap.cpp 2019-02-25 10:40:31.021430585 +0100 +++ new/src/hotspot/share/gc/z/zHeap.cpp 2019-02-25 10:40:30.662419104 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2019, 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 @@ -80,12 +80,12 @@ } size_t ZHeap::heap_min_size() const { - const size_t aligned_min_size = align_up(InitialHeapSize, ZPageSizeMin); + const size_t aligned_min_size = align_up(InitialHeapSize, ZGranuleSize); return MIN2(aligned_min_size, heap_max_size()); } size_t ZHeap::heap_max_size() const { - const size_t aligned_max_size = align_up(MaxHeapSize, ZPageSizeMin); + const size_t aligned_max_size = align_up(MaxHeapSize, ZGranuleSize); return MIN2(aligned_max_size, ZAddressOffsetMax); }