| 32 | } |
| 33 | |
| 34 | void RefCountableAutoreleasePool::release(void* ptr) { |
| 35 | auto* current = tCurrent; |
| 36 | if (current != nullptr) { |
| 37 | current->append(ptr); |
| 38 | } else { |
| 39 | Valdi::unsafeBridgeRelease(ptr); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | void RefCountableAutoreleasePool::append(void* ptr) { |
| 44 | // If our append will cause a reallocation, but we have some free spots available |
nothing calls this directly
no test coverage detected