PSVirtualSpace::PSVirtualSpace(ReservedSpace rs) : _alignment(os::vm_page_size()) { set_reserved(rs); set_committed(reserved_low_addr(), reserved_low_addr()); DEBUG_ONLY(verify()); }
PSVirtualSpace::PSVirtualSpace(ReservedSpace rs, size_t alignment) : _alignment(alignment) { set_reserved(rs); set_committed(reserved_low_addr(), reserved_low_addr()); DEBUG_ONLY(verify()); }
PSVirtualSpace::PSVirtualSpace(ReservedSpace rs) : _alignment(os::vm_page_size()), _account(os::CHEAP_COMMITTED_MEMORY_ACCOUNT) { set_reserved(rs); set_committed(reserved_low_addr(), reserved_low_addr()); DEBUG_ONLY(verify()); }
PSVirtualSpaceHighToLow::PSVirtualSpaceHighToLow(ReservedSpace rs, size_t alignment) : PSVirtualSpace(alignment) { set_reserved(rs); set_committed(reserved_high_addr(), reserved_high_addr()); DEBUG_ONLY(verify()); }
// Deprecated. bool PSVirtualSpace::initialize(ReservedSpace rs, size_t commit_size) { set_reserved(rs); set_committed(reserved_low_addr(), reserved_low_addr()); // Commit to initial size. assert(commit_size <= rs.size(), "commit_size too big"); bool result = commit_size > 0 ? expand_by(commit_size) : true; DEBUG_ONLY(verify()); return result; }
inline void PSVirtualSpace::set_reserved(ReservedSpace rs) { set_reserved(rs.base(), rs.base() + rs.size(), rs.special()); }