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 ThreadSanitizer warning in quickjs-libc #562

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

bnoordhuis
Copy link
Contributor

A global function pointer was getting accessed from multiple threads. Replace it with an atomic integer and an immediate function call.


Salvaged from #558

A global function pointer was getting accessed from multiple threads.
Replace it with an atomic integer and an immediate function call.
@bnoordhuis bnoordhuis merged commit 0bf36b9 into quickjs-ng:master Sep 28, 2024
52 checks passed
@bnoordhuis bnoordhuis deleted the fix-tsan-libc branch September 28, 2024 20:27
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