swift
0046165d - [DependencyScanning] Isolate 'DependencyScanningTool' reset operations

Commit
2 years ago
[DependencyScanning] Isolate 'DependencyScanningTool' reset operations Guard 'resetCache' and 'resetDiagnostics' as critical sections using 'DependencyScanningToolStateLock'. Otherwise there's a chance that one thread in the scanner is doing a reset on the diagnostic consumer, while some other thread is adding this diagnostic consumer to another scan instance which may also be populating said consumer at the time. Similarly, for resetting 'ScanningService' though it is much more unlikely to be reset while in-use by other scanning actions.
Author
Committer
Parents
Loading