// Records various memory allocation statistics gathered during evacuation. All sizes // are in HeapWords. class G1EvacStats : public PLABStats {
size_t _default_plab_size;
size_t _desired_net_plab_size; // Output of filter (below), suitably trimmed and quantized
AdaptiveWeightedAverage
_net_plab_size_filter; // Integrator with decay
size_t _region_end_waste; // Number of words wasted due to skipping to the next region.
uint _regions_filled; // Number of regions filled completely.
size_t _num_plab_filled; // Number of PLABs filled and retired.
size_t _direct_allocated; // Number of words allocated directly into the regions.
size_t _num_direct_allocated; // Number of direct allocation attempts.
// Number of words in live objects remaining in regions that ultimately suffered an // evacuation failure. This is used in the regions when the regions are made old regions.
size_t _failure_used; // Number of words wasted in regions which failed evacuation. This is the sum of space // for objects successfully copied out of the regions (now dead space) plus waste at the // end of regions.
size_t _failure_waste;
// Calculates plab size for current number of gc worker threads.
size_t desired_plab_size(uint no_of_gc_workers) const;
// Computes the new desired PLAB size assuming one gc worker thread, updating // _desired_plab_sz, and clearing statistics for the next GC. // Should be called at the end of a GC pause. void adjust_desired_plab_size();
// Amount of space in heapwords used in the failing regions when an evacuation failure happens.
size_t failure_used() const { return _failure_used; } // Amount of space in heapwords wasted (unused) in the failing regions when an evacuation failure happens.
size_t failure_waste() const { return _failure_waste; }
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.