feat(scheduler-snapshot-job-allocation): add dup_job_alloc deep-copy primitive
Task 1.1: new deep-copy for xce_job_alloc_t composed from existing make_alloc/make_host_alloc/make_job_alloc, explicitly preserving each allocation's original from/duration rather than accepting make_alloc's own time(NULL) stamp. TDD: 6 new unit tests (single-host, multi-host, multi-resource-per-host, shared-resource-pool, independence-after-free, from/duration fidelity), all passing under ASAN. Also logs bug-1723 (pre-existing, unrelated leak in two bug-1722 test fixtures, confirmed via git-stash A/B rebuild to be byte-for-byte identical before and after this change) -- documentation only, not fixed here. Requirements: 1.1, 1.4
This commit is contained in:
parent
1b4737360b
commit
097e33ae34
5 changed files with 1023 additions and 418 deletions
|
|
@ -13,5 +13,6 @@ extern xce_job_alloc_t* make_job_alloc(uint64_t, int, xce_host_alloc_t**);
|
|||
extern xce_alloc_t** make_allocs(int, ...);
|
||||
extern xce_host_alloc_t** make_host_allocs(int, ...);
|
||||
extern xce_job_account_t* make_job_account(xce_job_alloc_t*);
|
||||
extern xce_job_alloc_t* dup_job_alloc(const xce_job_alloc_t*);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue