src/hotspot/share/gc/z/zPageTable.cpp
changeset 54094 ed3c6f07faab
parent 50525 767cdb97f103
child 54095 8b4a1177202d
equal deleted inserted replaced
54093:9d02451b536e 54094:ed3c6f07faab
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    40   // updating the pagetable.
    40   // updating the pagetable.
    41   OrderAccess::storestore();
    41   OrderAccess::storestore();
    42 
    42 
    43   const uintptr_t start = ZAddress::good(page->start());
    43   const uintptr_t start = ZAddress::good(page->start());
    44   const uintptr_t end = start + page->size();
    44   const uintptr_t end = start + page->size();
    45   for (uintptr_t addr = start; addr < end; addr += ZPageSizeMin) {
    45   for (uintptr_t addr = start; addr < end; addr += ZGranuleSize) {
    46     _map.put(addr, entry);
    46     _map.put(addr, entry);
    47   }
    47   }
    48 }
    48 }
    49 
    49 
    50 void ZPageTable::insert(ZPage* page) {
    50 void ZPageTable::insert(ZPage* page) {