void Partitions::decommitFreeableMemory() { ASSERT(isMainThread()); partitionPurgeMemoryGeneric(bufferPartition(), PartitionPurgeDecommitEmptyPages); partitionPurgeMemoryGeneric(fastMallocPartition(), PartitionPurgeDecommitEmptyPages); partitionPurgeMemory(nodePartition(), PartitionPurgeDecommitEmptyPages); partitionPurgeMemory(layoutPartition(), PartitionPurgeDecommitEmptyPages); }
void Partitions::decommitFreeableMemory() { RELEASE_ASSERT(isMainThread()); if (!s_initialized) return; partitionPurgeMemoryGeneric(bufferPartition(), PartitionPurgeDecommitEmptyPages); partitionPurgeMemoryGeneric(fastMallocPartition(), PartitionPurgeDecommitEmptyPages); partitionPurgeMemory(nodePartition(), PartitionPurgeDecommitEmptyPages); partitionPurgeMemory(layoutPartition(), PartitionPurgeDecommitEmptyPages); }
void Partitions::dumpMemoryStats(bool isLightDump, PartitionStatsDumper* partitionStatsDumper) { // Object model and rendering partitions are not thread safe and can be // accessed only on the main thread. ASSERT(isMainThread()); partitionDumpStatsGeneric(fastMallocPartition(), "fast_malloc", isLightDump, partitionStatsDumper); partitionDumpStatsGeneric(bufferPartition(), "buffer", isLightDump, partitionStatsDumper); partitionDumpStats(nodePartition(), "node", isLightDump, partitionStatsDumper); partitionDumpStats(layoutPartition(), "layout", isLightDump, partitionStatsDumper); }