Skip to content

Bump JsRuntimeHost to fix WorkQueue destructor deadlock#1654

Merged
bghgary merged 2 commits intomasterfrom
chore/bump-jsruntimehost
Apr 8, 2026
Merged

Bump JsRuntimeHost to fix WorkQueue destructor deadlock#1654
bghgary merged 2 commits intomasterfrom
chore/bump-jsruntimehost

Conversation

@bghgary
Copy link
Copy Markdown
Contributor

@bghgary bghgary commented Apr 7, 2026

Bump JsRuntimeHost to include the fix for a race condition in WorkQueue::~WorkQueue() where cancel() + notify_all() could miss condition_variable::wait(), causing a deadlock on thread join during shutdown.

See BabylonJS/JsRuntimeHost#147 for full details and threading diagrams.

bghgary and others added 2 commits April 7, 2026 16:52
Updates JsRuntimeHost to include the fix for a race condition in
WorkQueue::~WorkQueue() where cancel() + notify_all() could miss
condition_variable::wait(), causing a deadlock on thread join.

See BabylonJS/JsRuntimeHost#147 for details.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 7, 2026 23:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Babylon Native dependency pin for JsRuntimeHost to pull in an upstream fix for a shutdown deadlock in WorkQueue::~WorkQueue() (race between cancel() / notify_all() and condition_variable::wait()), aligning this repo with BabylonJS/JsRuntimeHost#147.

Changes:

  • Bump JsRuntimeHost FetchContent_Declare GIT_TAG to a newer commit that includes the WorkQueue destructor deadlock fix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bghgary bghgary merged commit 5ac626c into master Apr 8, 2026
31 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.

3 participants