Allocation of memory within a data type-specific memory heap
AssigneeApple Inc.
InventorFilip J. Pizlo
Life of this patent
Estimating the term…
Abstract
One embodiment provides for a non-transitory machine-readable medium storing instructions to cause one or more processors to perform operations comprising receiving an instruction to dynamically allocate memory for an object of a data type and dynamically allocating memory for the object from a heap instance that is specific to the data type for the object, the heap instance including a memory allocator for the data type, the memory allocator generated at compile time for the instruction based on a specification of the data type for the heap instance.
Claims20
A non-transitory machine-readable medium comprising instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:
- receiving an instruction to dynamically deallocate memory for an object of a data type;
- dynamically deallocating memory for the object in response to the instruction, the memory deallocated from a heap instance that is specific to the data type for the object, the heap instance including a memory allocator and memory deallocator that are specific to data type;
- and
- releasing physical memory for multiple deallocated objects while retaining virtual memory addresses associated with the deallocated objects.
A method comprising:
- receiving an instruction to dynamically deallocate memory for an object of a data type;
- dynamically deallocating memory for the object in response to the instruction, the memory deallocated from a heap instance that is specific to the data type for the object, the heap instance including a memory allocator and memory deallocator that are specific to data type;
- and
- releasing physical memory for multiple deallocated objects while retaining virtual memory addresses associated with the deallocated objects.
A device comprising:
- a memory;
- and
- at least one processor configured to:
- receive an instruction to dynamically deallocate memory for an object of a data type;
- dynamically deallocate memory for the object in response to the instruction, the memory deallocated from a heap instance that is specific to the data type for the object, the heap instance including a memory allocator and memory deallocator that are specific to data type;
- and
- release physical memory for multiple deallocated objects while retaining virtual memory addresses associated with the deallocated objects.
Dependencies are inferred from the claim text.