This will allocate an object of the required size from a managed block if the size is small and by a direct call to malloc otherwise. In the latter case, the object will be placed in the map of outsized objects. Pointer to the allocated block
| Return Type | Function name | Arguments |
|---|---|---|
| void* | _regime_alloc_Ovrd | (uint32_t,) |
Declared and defined in file: hzMemory.cpp
Function Logic:
Function body:
void* _regime_alloc_Ovrd (uint32_t size)
{
// Category: Memory
//
// This will allocate an object of the required size from a managed block if the size is small and by a direct call to malloc otherwise. In the
// latter case, the object will be placed in the map of outsized objects.
//
// Arguments: 1) size Number of bytes requested
// Returns: Pointer to the allocated block
if (!s_Heap)
{
// Fatal("No heap initialized\n") ;
printf("No heap initialized\n") ; fflush(stdout) ;
exit(1);
}
// printf("_regime_alloc_Ovrd %d bytes\n", size) ; fflush(stdout) ;
return s_Heap->allocate(size) ;
}