Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

mikaelwaltersson
Copy link
Contributor

The WasmWorkerFactory instance caches a single IWasmWorker instance but the dispose method on the IWasmWorker instance still terminates the underlying worker. The effect is that the worker in the @vscode/dwarf-debugging terminates on browser page reloads and never re-spawns again until debugging is restarted.

This PR addresses this issue by still caching a single IWasmWorker instance but re-spawning it if the previous call to dispose caused the "ref count" to reach zero.

Possible related to microsoft/vscode-dwarf-debugging#6

Also fixes writeMemory when WASM memory is SharedArrayBuffer.

…d on page reloads + writeMemory when WASM memory is SharedArrayBuffer
Copy link
Member

@connor4312 connor4312 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@connor4312 connor4312 enabled auto-merge (squash) May 1, 2025 15:14
@vs-code-engineering vs-code-engineering bot added this to the May 2025 milestone May 1, 2025
@connor4312 connor4312 merged commit 8d8f7cd into microsoft:main May 1, 2025
4 of 7 checks passed
@edwiin17
Copy link

edwiin17 commented May 4, 2025

thanks!

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.

4 participants