// Statistics for a monotonic arena. Contains the number of segments and memory // used for each. Note that statistics are typically not taken atomically so there // can be inconsistencies. The user must be prepared for them. class G1MonotonicArenaMemoryStats { public:
// A set of free lists holding freed segments for use by G1MonotonicArena, // e.g. G1CardSetAllocators::_arena class G1MonotonicArenaFreePool { using SegmentFreeList = G1MonotonicArena::SegmentFreeList;
// Data structure containing current in-progress state for returning memory to the // operating system for a single G1SegmentFreeList. class G1MonotonicArenaFreePool::G1ReturnMemoryProcessor : public CHeapObj<mtGC> { using SegmentFreeList = G1MonotonicArena::SegmentFreeList; using Segment = G1MonotonicArena::Segment;
SegmentFreeList* _source;
size_t _return_to_vm_size;
// Updates the instance members about the given free list for // the purpose of giving back memory. Only necessary members are updated, // e.g. if there is nothing to return to the VM, do not set the source list. void visit_free_list(SegmentFreeList* source);
// Returns memory to the VM until the given deadline expires. Returns true if // there is no more work. Guarantees forward progress, i.e. at least one segment // has been processed after returning. // return_to_vm() re-adds segments to the respective free list. bool return_to_vm(jlong deadline); // Returns memory to the VM until the given deadline expires. Returns true if // there is no more work. Guarantees forward progress, i.e. at least one segment // has been processed after returning. // return_to_os() gives back segments to the OS. bool return_to_os(jlong deadline);
};
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.