< prev index next >

src/hotspot/share/gc/z/zHeap.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2015, 2018, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 78,93 **** // Update statistics ZStatHeap::set_at_initialize(heap_max_size(), heap_max_reserve_size()); } size_t ZHeap::heap_min_size() const { ! const size_t aligned_min_size = align_up(InitialHeapSize, ZPageSizeMin); 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); return MIN2(aligned_max_size, ZAddressOffsetMax); } size_t ZHeap::heap_max_reserve_size() const { // Reserve one small page per worker plus one shared medium page. This is still just --- 78,93 ---- // Update statistics ZStatHeap::set_at_initialize(heap_max_size(), heap_max_reserve_size()); } size_t ZHeap::heap_min_size() const { ! 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, ZGranuleSize); return MIN2(aligned_max_size, ZAddressOffsetMax); } size_t ZHeap::heap_max_reserve_size() const { // Reserve one small page per worker plus one shared medium page. This is still just
< prev index next >