// VirtualSpace for the parallel scavenge collector. // // VirtualSpace is data structure for committing a previously reserved address // range in smaller chunks.
class PSVirtualSpace : public CHeapObj<mtGC> { friendclass VMStructs; protected: // The space is committed/uncommitted in chunks of size _alignment. The // ReservedSpace passed to initialize() must be aligned to this value. const size_t _alignment;
// Reserved area char* _reserved_low_addr; char* _reserved_high_addr;
// Committed area char* _committed_low_addr; char* _committed_high_addr;
// The entire space has been committed and pinned in memory, no // os::commit_memory() or os::uncommit_memory(). bool _special;
// Helper class to verify a space when entering/leaving a block. class PSVirtualSpaceVerifier: public StackObj { private: const PSVirtualSpace* const _space; public:
PSVirtualSpaceVerifier(PSVirtualSpace* space): _space(space) {
_space->verify();
}
~PSVirtualSpaceVerifier() { _space->verify(); }
}; #endif
// Included for compatibility with the original VirtualSpace. public: // Committed area char* low() const { return committed_low_addr(); } char* high() const { return committed_high_addr(); }
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.