MacOS has a virtual memory system (VM) that uses backup storage: a file system. The file system is used to store memory that is not currently in use. When the system runs on real memory (RAM), things in memory that are not actively used can be written to disk and loaded back into RAM.
iOS has a virtual memory system, but no backup storage. When memory is running low, the system requests applications to reduce memory. If this does not free up enough memory, the system will start killing applications.
The instructions you quote in the libdispatch headers are for the MacOS virtual memory system, not for iOS.
In iOS, the application should discard objects and reduce the size of the cache when processing a memory alert. Particular attention should be paid to objects that use dirty (not cleaned) memory. This is memory that the system cannot automatically reuse on its own - it must first be discarded by the application. In a typical iOS application, images (images) use the dirtiest memory.
source share