ADC Home > Reference Library > Technical Q&As > Legacy Documents > Hardware & Drivers >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Determining the State of the Modern Memory Manager

Q: How do I determine if I am running with the Modern Memory Manager?

A: You can tell the state of MMM based on the heapType member in your current Zone. The following function shows how this is done:

#include <Memory.h>

/*
** HaveNewMemoryManager returns true if the new
** Memory Manager is present
*/

Boolean HaveNewMemoryManager ( void ) {
    THz appZone;

    appZone = GetZone ();
    return ((appZone->heapType & kNewStyleHeap) != 0);
}



[Jul 06 1996]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.