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

Fix race condition in sharing of function state #1465

Merged

Conversation

lahma
Copy link
Collaborator

@lahma lahma commented Feb 23, 2023

Because JintFunctionDefinition has initialization phase, it can cause race condition because it was shared as part of AST. Now using more static FunctionDeclaration and test to cover.

fixes #1457

@lahma lahma force-pushed the fix-racy-sharing-of-function-definition branch from 1d1dd47 to 45d825f Compare February 23, 2023 17:33
@lahma lahma merged commit 68f6b5b into sebastienros:main Feb 23, 2023
@lahma lahma deleted the fix-racy-sharing-of-function-definition branch February 23, 2023 17:41
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.

Weird crashes when sharing AST between multiple concurrent engines
1 participant