| 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); |
| 380 | if ( !aptr && size ) throw_out_of_memory(false, size, at); |
| 381 | if ( instrumentAllocations ) onReallocate(ptr, oldSize, aptr, size, at ? *at : LineInfo()); |
| 382 | return aptr; |
| 383 | } |
| 384 | |
| 385 | __forceinline void free ( char * ptr, uint64_t size, const LineInfo * at = nullptr ) { |
| 386 | if ( instrumentAllocations ) onFree(ptr, at ? *at : LineInfo()); |
nothing calls this directly
no test coverage detected