| 477 | } |
| 478 | |
| 479 | Status Reallocate(int64_t old_size, int64_t new_size, int64_t /*alignment*/, |
| 480 | uint8_t** ptr) override { |
| 481 | *ptr = reinterpret_cast<uint8_t*>(std::realloc(*ptr, new_size)); |
| 482 | |
| 483 | if (*ptr == NULL) { |
| 484 | return Status::OutOfMemory("realloc of size ", new_size, " failed"); |
| 485 | } |
| 486 | |
| 487 | return Status::OK(); |
| 488 | } |
| 489 | |
| 490 | int64_t bytes_allocated() const override { return -1; } |
| 491 |
nothing calls this directly
no test coverage detected