Skip to content

Fix stale string definitions during hot-swapping - #2584

Merged
bfiete merged 2 commits into
beefytech:masterfrom
disarray2077:patch-19
Oct 27, 2026
Merged

bfiete merged 2 commits into
beefytech:masterfrom
disarray2077:patch-19

Conversation

@disarray2077

Copy link
Copy Markdown
Contributor

This PR fixes a hot-swapping bug I encountered. After building with a certain call, removing it and rebuilding without cleaning, then adding it back while debugging, hot swapping would fail to resolve __bfStrObj... symbols.

The cause seems to be that mDefinedStrings could still contain strings that were no longer present in the executable, causing the hot compile to skip emitting them. This change clears the set whenever vdata is regenerated during a non-hot compile.

@bfiete
bfiete merged commit 9ede99b into beefytech:master Oct 27, 2026
5 checks passed
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.

2 participants