Repository navigation
refactor: introduce AppState.gta6 Gta6Session and eliminate 56 mutable statics (desloppify wave 6A-2a) - #122
Merged
Merged
Conversation
…e statics (desloppify wave 6A-2a) - Introduce Gta6Session(Arc<Gta6SessionInner>) in src/state/gta6/session.rs owned per AppState instance so background workers and &AppState callers operate on isolated session state instead of process-wide static Mutexes. - Eliminate all 56 mutable statics across 10 subsystems: gta6/anim (5), gta6/audio (7), gta6/bodies (5), gta6/particles (6), gta6/physics (7), gta6/textures (2), gta6/modding (7), gta6/install (8), ttpf_document (5), and document/gta6_script (4).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First state-layer half of resolving
initialization_coupling::gta6_rpf9_global_singleton_sprawlandcross_module_architecture::process_global_mutable_state_coordination(wave 6A-2a):Gta6Session(Arc<Gta6SessionInner>)insrc/state/gta6/session.rsowned perAppStateinstance (8 bytes, O(1) clone for background worker threads, full multi-instance and parallel-test isolation).gta6/anim(5),gta6/audio(7),gta6/bodies(5),gta6/particles(6),gta6/physics(7),gta6/textures(2),gta6/modding(7),gta6/install(8),ttpf_document(5), anddocument/gta6_script(4).Verification
just ready+shell_budget: 881 tests passed across 9 binaries, 0 failed.cargo clippy -p openrage --all-targets -- -D warnings: 0 warnings.just self-check: 140/140 passed.