mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Heap allocate our atomics
We used C atomics but these were allocated as Swift variables. Even thought they were atomic, concurrent accesses to them could violate Swift’s exclusivity laws, raising thread sanitizer errors. Allocate the C atomics using malloc to fix this problem. rdar://129170128
This commit is contained in:
@@ -10,9 +10,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import CAtomics
|
||||
import LanguageServerProtocol
|
||||
import SKCore
|
||||
import SKSupport
|
||||
import SourceKitLSP
|
||||
|
||||
/// Launches a `SourceKitLSPServer` in-process and allows sending messages to it.
|
||||
|
||||
Reference in New Issue
Block a user