class MemMapArenaPool final : public ArenaPool { public: explicit MemMapArenaPool(bool low_4gb = false, constchar* name = "LinearAlloc"); virtual ~MemMapArenaPool();
Arena* AllocArena(size_t size) override; void FreeArenaChain(Arena* first) override;
size_t GetBytesAllocated() const override; void ReclaimMemory() override; void LockReclaimMemory() override; // Trim the maps in arenas by madvising, used by JIT to reduce memory usage. void TrimMaps() override;
private: constbool low_4gb_; constchar* name_;
Arena* free_arenas_; // Use a std::mutex here as Arenas are second-from-the-bottom when using MemMaps, and MemMap // itself uses std::mutex scoped to within an allocate/free only. mutable std::mutex lock_;
DISALLOW_COPY_AND_ASSIGN(MemMapArenaPool);
};
} // namespace art
#endif// ART_RUNTIME_BASE_MEM_MAP_ARENA_POOL_H_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-29)
¤
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.