Skip to content

GHC API is not thread safe

There are some items of global state (the NameCache and the PackageInterfaceTable) that should be protected. One can workaround this by using a mutex and only invoking GHC API operations in one thread at a time.

Trac metadata
Trac field Value
Version
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHC API
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information