What: tests::memory_frees::a_buffer_with_a_block_of_its_own_keeps_it_for_the_next_of_its_size
failed once in 22 runtime-suite runs on the Iris Xe (ms01), "left 5, right 4". The device's
first creation call (the test's first new_buffer) starts blocks made ahead on a thread of their
own (memory/ready.rs), each a vkAllocateMemory that the device's counts hold, and the test
reads object_churn.vk_memory_allocations before and after the next buffer of its size to say
that buffer allocated nothing. Under load a making still pending at the first reading landed
between the two: "the next buffer of its size took the kept block", left 5, right 4. The test
now waits until no block is being made ahead (Memory::readying_ended, as tests::zeroed_start
does) before its readings.
Verified on the Iris Xe (ms01, Mesa 26.2.6, --cfg m2v_gpu, jobs m3-max-13493 and 13525):
- Not reproduced as committed: 0 of 40 alone and 0 of 568 beside a runtime-suite run. A scratch
probe of the counts at each reading showed readying_ended false at all three, and
vk_memory_allocations at 5 in a run alone against 4 beside the suite: a making ahead still
pending through the whole test.
- Negative control, a scratch copy of the old test with that pending making let land between
the two readings (a wait for readying_ended there): failed 6 of 40 alone and 145 of 222
beside the suite, every time with this commit's message, "the next buffer of its size took
the kept block", left 5, right 4 (allocations 4 at the first reading, 5 at the second).
- This test: 0 of 40 alone, 0 of 222 beside the suite (2029 of 2029 passed).
(cherry picked from commit 448c3ce0a20d02a00d4156c5f5d481abc6425d13)