Skip to content

Remove physical module layout info from read sets#5149

Open
joshua-spacetime wants to merge 5 commits into
masterfrom
joshua/fix/view-fn-ptr
Open

Remove physical module layout info from read sets#5149
joshua-spacetime wants to merge 5 commits into
masterfrom
joshua/fix/view-fn-ptr

Conversation

@joshua-spacetime
Copy link
Copy Markdown
Contributor

@joshua-spacetime joshua-spacetime commented May 29, 2026

Description of Changes

I believe this to fix #4947.

Previously, committed read sets stored module-local indexes used for view dispatch. These indexes are not stable across module updates, but they were not removed from the committed state, so that later when a write triggered a view refresh, the runtime could dispatch the wrong view function or attempt to materialize into the wrong backing table which would result in a fatal error.

This patch removes these unstable indexes from read sets. The core behavior change is that committed read sets no longer depend on stale per-module layout details. They identify the logical view call, and refresh resolves the current module metadata when needed.

API and ABI breaking changes

N/A

Expected complexity level and risk

2

Testing

  • Auto-migrate smoketests

@joshua-spacetime joshua-spacetime force-pushed the joshua/fix/view-fn-ptr branch from 20f7181 to decad9f Compare May 29, 2026 22:27
@joshua-spacetime joshua-spacetime changed the title test: view order stability across module updates Remove physical module layout info from read sets May 30, 2026
@joshua-spacetime joshua-spacetime marked this pull request as ready for review May 30, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CRITICAL] Views recomputation can roll back transactions.

1 participant