Skip to content

Isolate mutable state in copied environments - #3114

Open
OskarEichler wants to merge 2 commits into
ruby:masterfrom
OskarEichler:codex/isolate-environment-cache
Open

Isolate mutable state in copied environments#3114
OskarEichler wants to merge 2 commits into
ruby:masterfrom
OskarEichler:codex/isolate-environment-cache

Conversation

@OskarEichler

Copy link
Copy Markdown

Summary: duplicate class/module entry declaration arrays and the module-name normalization cache when copying an environment, preventing mutations in one copy from leaking into another.

Verification: focused baseline/fixed reproduction, combined RBS 4.2.0 consumer models, and RuboCop (738 files, zero offenses). No tests are added in this PR.

Compatibility: no public API removal or dependency/version change.

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