Important: The information in this document is obsolete and should not be used for new development.
MaxApplZone
To help ensure that you can use as much of the application heap zone as possible, call theMaxApplZone
procedure. Call this once near the beginning of your program, after you have expanded your stack.
PROCEDURE MaxApplZone;DESCRIPTION
TheMaxApplZone
procedure expands the application heap zone to the application heap limit. If you do not callMaxApplZone
, the application heap zone grows as necessary to fulfill memory requests. TheMaxApplZone
procedure 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 if you intend to maintain an effectively partitioned heap. If you do not callMaxApplZone
and then callMoveHHi
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.ASSEMBLY-LANGUAGE INFORMATION
The registers on exit forMaxApplZone
are
Registers on exit D0 Result code RESULT CODES
noErr 0 No error