Skip to content

[mem_cache] Keep req.kv non-optional and key KV ownership on req_pool_idx - #36958

Merged
hnyls2002 merged 5 commits into
mainfrom
lsyin/kv-ownership-pr1
Aug 29, 2026
Merged

hnyls2002 merged 5 commits into
mainfrom
lsyin/kv-ownership-pr1

Conversation

@hnyls2002

@hnyls2002 hnyls2002 commented Aug 29, 2026 •

Copy link
Copy Markdown
Collaborator

Keep req.kv on the Req for its whole lifetime (zeroed via mark_released() instead of set to None) and make req_pool_idx is not None the single "holds KV" predicate; the row and the KV bookkeeping were already allocated and released together, so the three if req.kv is None allocation branches collapse and the lifecycle asserts become (not is_holding_kv) == kv.is_released.


CI States

Latest PR Test (Base): 🚫 Run #33239319738
Latest PR Test (Extra): 🚫 Run #33239319651
Latest PR Test (AMD ROCm 7.2): 🚫 Run #33239319766

@hnyls2002
hnyls2002 merged commit 24a3a63 into main Aug 29, 2026
17 of 21 checks passed
@hnyls2002
hnyls2002 deleted the lsyin/kv-ownership-pr1 branch August 29, 2026 06:47
@hnyls2002 hnyls2002 changed the title [misc] Keep req.kv non-optional and key KV ownership on req_pool_idx [mem_cache] Keep req.kv non-optional and key KV ownership on req_pool_idx Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bypass-fastfail high priority run-ci CI: run the baseline test suite on this PR run-ci-extra CI: also run the extra suite (requires run-ci)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant