Reuse heap sync rounds on current main #343
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!343
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-343"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TaynanGT on GitHub · 2026-11-27 18:34 UTC · original
TaynanGT:fix/heap-sync-rounds-current-main→main· +356 −178 · 4 files · 3 commits · merged 2026-11-27 18:53 UTCBring Petr Seifert’s heap-sync rounds from #323 onto current main. When queued submissions can use the same completed round, let them share it. Keep the #311 check that closes host lists before submission preparation.
The existing round-coalescing unit test passed in an isolated Windows run. The combined diff keeps the four source files from #323 and resolves the single conflict at
Host::submit.Original change by PetrSeifert.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-27 18:34 UTC · original · edited 2026-11-27 18:48 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
398b72c398b72cℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-27 18:36 UTC · original · reviewed
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
38c145b80aℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@ -7243,3 +7291,3 @@0 => crate::descriptor::begin_sync_heaps(),0 => crate::descriptor::begin_sync_heaps_for(heap_sync),mark => crate::descriptor::begin_sync_heaps_after(mark),};@chatgpt-codex-connector[bot] on GitHub · 2026-11-27 18:36 UTC · original
With asynchronous heap sync enabled and the default
VICTORY_PORT_JOURNALsetting, a queued submission can now reuse a round completed before preparation and receiveSyncedHeaps(None)here. However,run_deferredsubsequently executesStep::Copy, freeStep::Placed, andStep::RawCopyoperations that can write descriptor-heap memory. Theirprep_wrote()calls raise the floor, but nothing rechecks it beforedrop(heaps_synced)at line 7484; that drop simply returns forNone. Consequently, the submission can execute with stale host descriptors even though its preparation updated the title-side records. Revalidate the required round after deferred writes and any preparation-time landings, before sending the command lists.Useful? React with 👍 / 👎.