Skip to content

Preserve virtual override effects and unused Lua allocations - #1471

Merged
Frotty merged 2 commits into
masterfrom
codex/lua-observable-effects
Oct 16, 2026
Merged

Frotty merged 2 commits into
masterfrom
codex/lua-observable-effects

Conversation

@Frotty

@Frotty Frotty commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Fix two Lua miscompiles found during the runtime investigation (#1470). An unread virtual call could disappear even when an override changed state, and new Empty() could disappear when its result was unused, changing subsequent object IDs and allocator reuse.

Effect analysis now follows the complete transitive override graph and recognizes allocation/deallocation effects, including inside callees. Flattening evaluates an unused allocation through an assignment which both dead-assignment passes preserve. Allocation and deallocation purity also prevents movement across other argument effects. No runtime helper or guard is added; genuinely inert virtual calls can still be removed.

Add 27 normal-suite regressions covering Jass and Lua, optimization and stacktrace modes, global/member/native effects, deep overrides, old/new generic module overrides, allocation assignments and calls, ID reuse and argument evaluation order. Include emitted-Lua assertions and direct IM checks for override traversal and lifetime effects. The original repros failed on Lua before the production changes while their Jass controls passed.

Validation: 839 tests passed with no skips on Windows across ObservableEffectsTests, OptimizerTests, LuaBackendAuditTests, ClassesTests, DispatchImplementationTests, LuaTranslationTests, TupleTests, GenericsTests and LuaKeyedMapTests. Two existing keyed-map shape assertions now ignore generated temporary suffixes while checking the same direct stores. No game was launched; macOS remains unverified locally, and Ubuntu CI passed on 2a26777.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T13:12:04.641305Z 2a26777 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Frotty

Frotty commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 2a267770e8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@Frotty
Frotty merged commit a3452e7 into master Oct 16, 2026
2 checks passed
@Frotty
Frotty deleted the codex/lua-observable-effects branch November 25, 2026 08:53
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.

1 participant