Skip to content

Portfolio: Fix - Prevent worklet cached Hermes value race#2231

Open
msalcala11 wants to merge 1 commit into
bitpay:developfrom
msalcala11:fix-worklet-synchronization
Open

Portfolio: Fix - Prevent worklet cached Hermes value race#2231
msalcala11 wants to merge 1 commit into
bitpay:developfrom
msalcala11:fix-worklet-synchronization

Conversation

@msalcala11

Copy link
Copy Markdown
Collaborator

The react-native-worklets package let multiple Worklet threads replace the same cached Hermes value at once, causing one thread to destroy memory another thread was still using, which led to a crash. This patch locks cache ownership and makes other runtimes create their own temporary values instead.

@msalcala11 msalcala11 changed the title fix(worklets): prevent cached Hermes value race Portfolio: Fix - Prevent worklet cached Hermes value race Jul 17, 2026
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