Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't call jsQueue->quitSynchronous() immediately after construction #6781

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

tomekzaw
Copy link
Member

@tomekzaw tomekzaw commented Dec 2, 2024

Summary

This PR moves jsQueue->quitSynchronously() calls from ReanimatedRuntime::make or ReanimatedHermesRuntime constructor to ~WorkletsModuleProxy as well as simplifies the logic.

I had to add (void)jsQueue; to avoid a warning due to unused variable.

Test plan

Note

I have tested this PR only on iOS Fabric in debug mode. Please test it thoroughly across platforms, runtimes and build configurations prior to merging.

@tomekzaw tomekzaw requested a review from piaskowyk December 2, 2024 12:26
Copy link
Member

@piaskowyk piaskowyk left a comment

Choose a reason for hiding this comment

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

I've tested it against some configuration and everything seems to works:

  • Android, debug, Hermes, Fabric
  • Android, release, Hermes, Fabric
  • iOS, debug, Hermes, Fabric
  • iOS, debug, JSC, Fabric
  • iOS, release, JSC, Fabric
  • MacOS, debug, JSC, Paper
  • MacOS, release, JSC, Paper
  • TVOS, debug, Hermes, Fabric
  • Android, debug, Hermes, Paper
  • iOS, debug, Hermes, Paper
  • iOS, release, Hermes, Paper

@tomekzaw tomekzaw added this pull request to the merge queue Jan 13, 2025
Merged via the queue into main with commit 15b3351 Jan 13, 2025
17 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/jsqueue-quit-synchronous branch January 13, 2025 12:03
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