| 470 | } |
| 471 | |
| 472 | Status Reallocate(int64_t old_size, int64_t new_size, int64_t /*alignment*/, |
| 473 | uint8_t** ptr) override { |
| 474 | *ptr = reinterpret_cast<uint8_t*>(std::realloc(*ptr, new_size)); |
| 475 | |
| 476 | if (*ptr == NULL) { |
| 477 | return Status::OutOfMemory("realloc of size ", new_size, " failed"); |
| 478 | } |
| 479 | |
| 480 | return Status::OK(); |
| 481 | } |
| 482 | |
| 483 | int64_t bytes_allocated() const override { return -1; } |
| 484 |
nothing calls this directly
no test coverage detected