Skip to content

fix(vm): stabilize CoW array writes before fork#349

Open
emiyl wants to merge 1 commit into
ButterscotchRunner:mainfrom
emiyl:stabilise-cow
Open

fix(vm): stabilize CoW array writes before fork#349
emiyl wants to merge 1 commit into
ButterscotchRunner:mainfrom
emiyl:stabilise-cow

Conversation

@emiyl

@emiyl emiyl commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

This fixes array writes with copy-on-write values. When array write triggers a CoW fork, the shared array may be duplicated and the original storage can be released. If the value being written references data owned by that same array, the value can become invalid before it's written. This ensures that the value being written is stabilised first, preventing the write from using invalid data.

Fixes a crash when entering Garden of Hope and Dreams in Chapter 5.

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