| 357 | void onFree ( void * ptr, const LineInfo & at ); |
| 358 | |
| 359 | __forceinline char * allocateIterator ( uint64_t size, const char * iterName, const LineInfo * at ) { |
| 360 | auto aptr = heap->impl_allocateIterator(size, iterName); |
| 361 | if ( !aptr ) throw_out_of_memory(false, size + 16, at); |
| 362 | if ( instrumentAllocations ) onAllocate(aptr - 16, size + 16, at ? *at : LineInfo()); |
| 363 | return aptr; |
| 364 | } |
| 365 | |
| 366 | __forceinline void freeIterator ( char * ptr, const LineInfo * at ) { |
| 367 | if ( instrumentAllocations ) onFree(ptr - 16, at ? *at : LineInfo()); |
nothing calls this directly
no test coverage detected