![]() |
MaxApplZone |
||||
Header: | MacMemory.h | Carbon status: | Unsupported | |
Expands the application heap zone to its maximum.
void MaxApplZone ();
If you do not call the MaxApplZone function, the application heap zone grows as necessary to fulfill memory requests. The MaxApplZone function does not purge any blocks currently in the zone. If the zone already extends to the limit, MaxApplZone does nothing.
It is a good idea to call MaxApplZone once at the beginning of your program, after you have expanded your stack, if you intend to maintain an effectively partitioned heap. If you do not call MaxApplZone and then call the MoveHHi function to move relocatable blocks to the top of the heap zone before locking them, the heap zone could later grow beyond these locked blocks to fulfill a memory request. If the Memory Manager were to allocate a nonrelocatable block in this new space, your heap would be fragmented.
Call the MemError function to get the result code. See
Not supported in Carbon. Not available in Carbon.
This routine is not needed by PowerPC-based applications because they can specify a stack size in the cfrg resource.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)