native: note dispatch writes from safely read table records #447

Merged
lautarocherro merged 1 commit from upstream-pr/447 into main 2026-11-28 00:28:25 +00:00
lautarocherro commented 2026-11-27 19:53:03 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by lautarocherro on 2026-11-27T19:53:03Z.


What this changes

Refs #445. note_written runs for every prepared dispatch since 95627c66 and read each table record with a plain load. It now reads records like remirror_tables does (table_records: one safe_read, entry by entry if that fails) and looks the views up with one lock per table (descriptor::views_of). remirror_tables uses the same helper.

How it was tested

  • cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victory: 391 passed.
  • cargo test -p victory-gpu (native arm64, Metal Shader Converter set): 413 passed. New: a_table_running_into_an_unreadable_page_is_noted_without_a_fault (a table bound at the last entry of a page, its span running into a NO_ACCESS page). On main it ends the test process with SIGBUS.
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings: passes. macOS clippy for victory-gpu: no finding on changed lines.
  • Ran the game, or not needed: not needed.

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md (none)
  • New diagnostics are behind a VICTORY_* variable and documented (none)
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5532321402 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/447). Originally posted by [lautarocherro](https://github.com/lautarocherro) on 2026-11-27T19:53:03Z. --- ## What this changes Refs #445. `note_written` runs for every prepared dispatch since 95627c66 and read each table record with a plain load. It now reads records like `remirror_tables` does (`table_records`: one `safe_read`, entry by entry if that fails) and looks the views up with one lock per table (`descriptor::views_of`). `remirror_tables` uses the same helper. ## How it was tested - [x] `cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victory`: 391 passed. - [x] `cargo test -p victory-gpu` (native arm64, Metal Shader Converter set): 413 passed. New: `a_table_running_into_an_unreadable_page_is_noted_without_a_fault` (a table bound at the last entry of a page, its span running into a `NO_ACCESS` page). On main it ends the test process with SIGBUS. - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings`: passes. macOS clippy for victory-gpu: no finding on changed lines. - [x] Ran the game, or not needed: not needed. ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md (none) - [x] New diagnostics are behind a `VICTORY_*` variable and documented (none)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS!447
No description provided.