| 386 | } |
| 387 | |
| 388 | Record ExecutionPlan_BorrowRecord(ExecutionPlan *plan) { |
| 389 | rax *mapping = ExecutionPlan_GetMappings(plan); |
| 390 | ASSERT(plan->record_pool); |
| 391 | |
| 392 | // Get a Record from the pool and set its owner and mapping. |
| 393 | Record r = ObjectPool_NewItem(plan->record_pool); |
| 394 | r->owner = plan; |
| 395 | r->mapping = mapping; |
| 396 | return r; |
| 397 | } |
| 398 | |
| 399 | void ExecutionPlan_ReturnRecord(const ExecutionPlan *plan, Record r) { |
| 400 | ASSERT(plan && r); |
no test coverage detected