--- old/src/hotspot/share/gc/z/zHeapIterator.cpp 2019-02-25 15:07:34.464590528 +0100 +++ new/src/hotspot/share/gc/z/zHeapIterator.cpp 2019-02-25 15:07:34.257583887 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 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 @@ -123,13 +123,13 @@ } static size_t object_index_max() { - return ZPageSizeMin >> ZObjectAlignmentSmallShift; + return ZGranuleSize >> ZObjectAlignmentSmallShift; } static size_t object_index(oop obj) { const uintptr_t addr = ZOop::to_address(obj); const uintptr_t offset = ZAddress::offset(addr); - const uintptr_t mask = (1 << ZPageSizeMinShift) - 1; + const uintptr_t mask = ZGranuleSize - 1; return (offset & mask) >> ZObjectAlignmentSmallShift; }