-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Handle race conditions when getting the compiler bridge
It was identified in #738 that a race condition could occur when building a project using multiple threads. To mitigate the issue, I wrapped the installation of the compiler with a synchronized block on the Static instance. As a result, if multiple threads try to install the compiler at the same time, only one thread will be able to do so. When they will get unlocked, it will check if the file was created meanwhile and if so, to will early return.
- Loading branch information
1 parent
c6cef98
commit 3a3decd
Showing
1 changed file
with
93 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters