class HeapRegionBounds : public AllStatic { private: // Minimum region size; we won't go lower than that. // We might want to decrease this in the future, to deal with small // heaps a bit more efficiently. staticconst size_t MIN_REGION_SIZE = 1024 * 1024;
// Maximum region size determined ergonomically. staticconst size_t MAX_ERGONOMICS_SIZE = 32 * 1024 * 1024; // Maximum region size; we don't go higher than that. There's a good // reason for having an upper bound. We don't want regions to get too // large, otherwise cleanup's effectiveness would decrease as there // will be fewer opportunities to find totally empty regions after // marking. staticconst size_t MAX_REGION_SIZE = 512 * 1024 * 1024;
// The automatic region size calculation will try to have around this // many regions in the heap. staticconst size_t TARGET_REGION_NUMBER = 2048;
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.