Memory Objects
Applications allocate and manipulate memory in terms of memory objects.
A memory object consists of one or more pages of memory. An OS/2 application
can allocate any number of memory objects, within the following limits:
- the physical memory in the system
- the free hard disk space on the hard disk containing
the swap file
- the 512MB process address space limit (see Process
Address Space).
When requesting memory, the size of the memory object is rounded up
to the next higher multiple of 4KB. An application can suballocate a memory
object into memory blocks whose size can range from 1 byte to the size of
the memory object.
Memory objects have the following characteristics: