< prev index next >

src/hotspot/share/gc/parallel/adjoiningVirtualSpaces.hpp

Print this page
rev 52004 : webrev.02
rev 52005 : Comments from Sangheon
rev 52006 : Bringing over one change from combined patch

*** 1,7 **** /* ! * Copyright (c) 2003, 2015, 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) 2003, 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.
*** 57,67 **** // boundary) independently. If L want to grow above its high_boundary, // then the high_boundary of L and the low_boundary of H must be // moved up consistently. AdjoiningVirtualSpaces provide the // interfaces for moving the this boundary. ! class AdjoiningVirtualSpaces { // space at the high end and the low end, respectively PSVirtualSpace* _high; PSVirtualSpace* _low; // The reserved space spanned by the two spaces. --- 57,68 ---- // boundary) independently. If L want to grow above its high_boundary, // then the high_boundary of L and the low_boundary of H must be // moved up consistently. AdjoiningVirtualSpaces provide the // interfaces for moving the this boundary. ! class AdjoiningVirtualSpaces : public CHeapObj<mtGC> { ! protected: // space at the high end and the low end, respectively PSVirtualSpace* _high; PSVirtualSpace* _low; // The reserved space spanned by the two spaces.
*** 82,102 **** size_t min_low_byte_size, size_t min_high_byte_size, size_t alignment); // accessors ! PSVirtualSpace* high() { return _high; } ! PSVirtualSpace* low() { return _low; } ReservedSpace reserved_space() { return _reserved_space; } size_t min_low_byte_size() { return _min_low_byte_size; } size_t min_high_byte_size() { return _min_high_byte_size; } size_t alignment() const { return _alignment; } // move boundary between the two spaces up ! bool adjust_boundary_up(size_t size_in_bytes); // and down ! bool adjust_boundary_down(size_t size_in_bytes); // Maximum byte size for the high space. size_t high_byte_size_limit() { return _reserved_space.size() - _min_low_byte_size; } --- 83,103 ---- size_t min_low_byte_size, size_t min_high_byte_size, size_t alignment); // accessors ! virtual PSVirtualSpace* high() { return _high; } ! virtual PSVirtualSpace* low() { return _low; } ReservedSpace reserved_space() { return _reserved_space; } size_t min_low_byte_size() { return _min_low_byte_size; } size_t min_high_byte_size() { return _min_high_byte_size; } size_t alignment() const { return _alignment; } // move boundary between the two spaces up ! virtual bool adjust_boundary_up(size_t size_in_bytes); // and down ! virtual bool adjust_boundary_down(size_t size_in_bytes); // Maximum byte size for the high space. size_t high_byte_size_limit() { return _reserved_space.size() - _min_low_byte_size; }
*** 105,115 **** return _reserved_space.size() - _min_high_byte_size; } // Sets the boundaries for the virtual spaces and commits and // initial size; ! void initialize(size_t max_low_byte_size, size_t init_low_byte_size, size_t init_high_byte_size); }; - #endif // SHARE_VM_GC_PARALLEL_ADJOININGVIRTUALSPACES_HPP --- 106,115 ---- return _reserved_space.size() - _min_high_byte_size; } // Sets the boundaries for the virtual spaces and commits and // initial size; ! virtual void initialize(size_t max_low_byte_size, size_t init_low_byte_size, size_t init_high_byte_size); }; #endif // SHARE_VM_GC_PARALLEL_ADJOININGVIRTUALSPACES_HPP
< prev index next >