hle: only a changed condition-variable word is a wake; loosen probe_s… #64
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/64"
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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-26T12:13:48Z.
…ync's scheduling bounds
The native_probe waits test failed about 1 run in 3 on a busy machine. Two timing-based causes, fixed the way the frame.rs tests were:
Unit tests cover both: a word-less wake must still end as a time-out, and a real WakeConditionVariable ends the wait at once.
Closes #20
What this changes
How it was tested
cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victorycargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningsChecklist
VICTORY_*variable and documentedImported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T12:48:26Z.
Review: CHANGES_REQUESTED
Thanks, the lost-wakeup analysis checks out and both new tests fail on the old code. Small things:
wait_on_addressreturns true on EFAULT-type errors without waiting, so a finite wait would spin hot until its deadline. Please add a backoff or ashortcut:comment.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T13:26:55Z.
Review: CHANGES_REQUESTED
Thanks for addressing the code comment on
INFINITEwaits and adding the 100 us backoff in841b1f4. Two items from the earlier review are still open before this can merge:INFINITE(u32::MAX) waits returning on any wake.AGENTS.md.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T14:55:58Z.
Review: CHANGES_REQUESTED
Thanks, the EFAULT backoff is in. Two description items remain: say in the PR text that INFINITE waits return on any wake (the code comment already does), and fill in "What this changes", the testing section and the checklist, including how many times you ran native_probe, since this removes the "known flaky" line from AGENTS.md.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T16:04:00Z.
Review: CHANGES_REQUESTED
The EFAULT backoff is in. Still open: the testing section and checklist in the description are unfilled. Please say how many times you ran native_probe, since this removes the known-flaky line from AGENTS.md, and note in the text that INFINITE waits return on any wake. The main CI check also failed on this PR; please look at it.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T16:04:08Z.
Correction to my review: I wrote that the main CI check failed on this PR, which I had not verified for this branch. Please disregard that sentence; the open points are the description items only.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T17:08:43Z.
Merged in
8c47ddd.native_probepasses here. Next time please fill in the testing section of the description. Thanks!