1. A method of managing a memory, comprising: defining a heap in the memory that comprises a static heap and a dynamic heap; and storing all objects that are external objects in the dynamic heap, an external object being an object that comprises no pointer to another object.