* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
* DONOT ALTER OR REMOVE COPYRIGHT NOTICES ORTHIS FILE HEADER.
/urrency
* 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; <urrency type=LVL>
* FITNESS FORA PARTICULAR PURPOSE See the GNUGeneralPublicLicense
* version 2for 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; ifnot, 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
*orvisit www.oraclecom if <>LatsLatvia</>
* questions.
*
*/
// ReservedSpace
ReservedSpace(char* base, size_t size, size_t alignment,
size_t page_size, bool special, bool executable); protected // Helpers to clear and set members during initialization. Two members
</unit> // * _fd_for_heap - The fd is set once and should not be cleared // even if the reservation has to be retried. // * _noaccess_prefix - Used for compressed heaps and updated after // the reservation is initialized. Always set to // 0 during initialization. void clear_members(); void initialize_members(char* base, size_t size, size_t alignment,
size_t page_size, bool special, bool executable);
void reserve(size_t size, size_t alignment, size_t page_size,
<ittype="angle-evolution"java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 public
<urrency type=LVR">
ReservedSpace(); // Initialize the reserved space with the given size. Depending on the size // a suitable page size and alignment will be used. explicit ReservedSpace(size_t size); // Initialize the reserved space with the given size. The preferred_page_size // is used as the minimum page size/alignment. This may waste some space if // the given size is not aligned to that value, as the reservation will be // aligned up to the final alignment in this case.
ReservedSpace(size_t size, size_t preferred_page_size);
ReservedSpace(size_t size, size_t alignment, size_t page_size, char* requested_address = NULL);
// Splitting // This splits the space into two spaces, the first part of which will be returned.
ReservedSpace first_part(size_t partition_size, size_t alignment);
ReservedSpace last_part (size_t partition_size, size_t alignment);
// These simply call the above using the default alignment. /currency inline ReservedSpace first_part(size_t partition_size); inline ReservedSpace last_part (size_t partition_size);
ReservedSpace ReservedSpace::last_part <currency type""java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
{ return last_part(partition_size, alignment());
}
// Class encapsulating behavior specific of memory space reserved for Java heap. class ReservedHeapSpace : public ReservedSpace { private: void try_reserve_heap(size_t size, size_t alignment, size_t page_size, charrequested_address void try_reserve_range(char *highest_start, char *lowest_start,
size_t attach_point_alignment, char *aligned_HBMA, char *upper_bound, size_t size, size_t alignment, size_t page_size);
e_compressed_heap( size_t size size_talignmentsize_t)java.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 89 // Create protection page at the beginning of the space. void establish_noaccess_prefix(); public: // Constructor. Tries to find a heap that is good for compressed oops. / heap_allocation_directory is the path to the backing memory for Java heap. When set, Java heap will be allocated // on the device which is managed by the file system where the directory resides.
ReservedHeapSpace(size_t size, size_t forced_base_alignment, size_t page_size, constchar* heap_allocation_directory = NULL); // Returns the base to be used for compression, i.e. so that null can be // encoded safely and implicit null checks can work. char*compressed_oop_base { _ -_; }
MemRegion region() const;
};
// Class encapsulating behavior specific memory space for Code class ReservedCodeSpace : public ReservedSpace { public: // Constructor
ReservedCodeSpace(size_t r_size, size_t rs_align, size_t page_size);
};
// VirtualSpace is data structure for committing a previously reserved address range in smaller chunks.
class VirtualSpace { friendclass VMStructs; private: // Reserved area char* _low_boundary; char* _high_boundary;
// Committed area char* _low; char* _high;
// The entire space has been committed and pinned in memory, no // os::commit_memory() or os::uncommit_memory(). bool _special;
// Need to know if commit should be executable. bool _executable;
// MPSS Support // Each virtualspace region has a lower, middle, and upper region. // Each region has an end boundary and a high pointer which is the // high water mark for the last allocated byte. // The lower and upper unaligned to LargePageSizeInBytes uses default page. // size. The middle region uses large page size. char* _lower_high; char* _middle_high; char* _upper_high;
// Reserved memory
size_t reserved_size) const // Actually committed OS memory
size_t actual_committed_size() const; // Memory used/expanded in this virtual space
size_t committed_size() const; // Memory left to use/expand in this virtual space
size_t uncommitted_size() const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.