Allow atomic update of NameCache in readHieFile
The situation arises in ghcide where multiple different threads may need to update the name cache, therefore with the older interface it could happen that you start reading a hie file with name cache A and produce name cache A + B, but another thread in the meantime updated the namecache to A + C. Therefore if you write the new namecache you will lose the A' updates from the second thread. Updates haddock submodule
parent
b9f7c08f
No related branches found
No related tags found
Pipeline #18937 passed with warnings
Stage: lint
Stage: quick-build
Stage: build
Stage: full-build
Stage: cleanup
Stage: packaging
Stage: testing
Showing
- compiler/GHC/Driver/Main.hs 2 additions, 3 deletionscompiler/GHC/Driver/Main.hs
- compiler/GHC/Iface/Ext/Binary.hs 24 additions, 21 deletionscompiler/GHC/Iface/Ext/Binary.hs
- testsuite/tests/hiefile/should_run/PatTypes.hs 1 addition, 1 deletiontestsuite/tests/hiefile/should_run/PatTypes.hs
- utils/haddock 1 addition, 1 deletionutils/haddock
Loading
Please register or sign in to comment