| 369 | } |
| 370 | |
| 371 | __forceinline char * allocate ( uint64_t size, const LineInfo * at = nullptr ) { |
| 372 | auto aptr = heap->impl_allocate(size); |
| 373 | if ( !aptr && size ) throw_out_of_memory(false, size, at); |
| 374 | if ( instrumentAllocations ) onAllocate(aptr, size, at ? *at : LineInfo()); |
| 375 | return aptr; |
| 376 | } |
| 377 | |
| 378 | __forceinline char * reallocate ( char * ptr, uint64_t oldSize, uint64_t size, const LineInfo * at ) { |
| 379 | auto aptr = heap->impl_reallocate(ptr, oldSize, size); |