--- old/src/hotspot/share/gc/parallel/adjoiningGenerationsForHeteroHeap.hpp 2018-09-19 09:03:08.441165600 -0700 +++ new/src/hotspot/share/gc/parallel/adjoiningGenerationsForHeteroHeap.hpp 2018-09-19 09:03:07.654617000 -0700 @@ -1,26 +1,26 @@ /* -* Copyright (c) 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. -* -* This code is distributed in the hope that it will be useful, but WITHOUT -* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -* version 2 for more details (a copy is included in the LICENSE file that -* accompanied this code). -* -* You should have received a copy of the GNU General Public License version -* 2 along with this work; if not, write to the Free Software Foundation, -* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. -* -* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA -* or visit www.oracle.com if you need additional information or have any -* questions. -* -*/ + * Copyright (c) 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. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + * + */ #ifndef SHARE_VM_GC_PARALLEL_ADJOININGGENERATIONSFORHETEROHEAP_HPP #define SHARE_VM_GC_PARALLEL_ADJOININGGENERATIONSFORHETEROHEAP_HPP @@ -34,7 +34,7 @@ // When adjusting young and old generation sizes, we need ensure that sum of the generation sizes does not exceed this. size_t _total_size_limit; - size_t total_size_limit() { + size_t total_size_limit() const { return _total_size_limit; } @@ -46,16 +46,16 @@ PSVirtualSpace* _old_vs; size_t _min_old_byte_size; - size_t _max_old_byte_size; size_t _min_young_byte_size; + size_t _max_old_byte_size; size_t _max_young_byte_size; size_t _max_total_size; public: HeteroVirtualSpaces(ReservedSpace rs, - size_t min_old_byte_size, - size_t min_young_byte_size, size_t max_total_size, - size_t alignment); + size_t min_old_byte_size, + size_t min_young_byte_size, size_t max_total_size, + size_t alignment); PSVirtualSpace* high() { return _young_vs; } PSVirtualSpace* low() { return _old_vs; } @@ -64,11 +64,11 @@ // Increase young generation size and decrease old generation size by same amount bool adjust_boundary_down(size_t size_in_bytes); - size_t max_young_size() { return _max_young_byte_size; } - size_t max_old_size() { return _max_old_byte_size; } + size_t max_young_size() const { return _max_young_byte_size; } + size_t max_old_size() const { return _max_old_byte_size; } void initialize(size_t initial_old_reserved_size, size_t init_low_byte_size, - size_t init_high_byte_size); + size_t init_high_byte_size); }; public: @@ -82,3 +82,4 @@ size_t reserved_byte_size(); }; #endif // SHARE_VM_GC_PARALLEL_ADJOININGGENERATIONSFORHETEROHEAP_HPP +