| 184 | } |
| 185 | |
| 186 | void LinearHeapAllocator::impl_free( char * ptr, uint64_t size ) { |
| 187 | totalBytesDeleted += size; |
| 188 | model.free(ptr,size); |
| 189 | } |
| 190 | |
| 191 | char * LinearHeapAllocator::impl_reallocate ( char * ptr, uint64_t oldSize, uint64_t newSize ) { |
| 192 | if ( limit==0 || model.bytesAllocated()+newSize-oldSize<=limit ) { |