Skip to content
  • Zubin's avatar
    d85a7df7
    Allow atomic update of NameCache in readHieFile · d85a7df7
    Zubin authored
    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
    d85a7df7
    Allow atomic update of NameCache in readHieFile
    Zubin authored
    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
Loading