summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-06-07 16:05:52 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-21 13:32:34 -0400
commitaa5164313aa86941bf15722936824dfbf556a911 (patch)
tree2dbd6e0847462c28e9166f5647f21c75362ea022 /libraries
parent2485c08aeecd9664bca7812e69e59b85ce16c079 (diff)
downloadhaskell-aa5164313aa86941bf15722936824dfbf556a911.tar.gz
testsuite: Mark T3372 as fragile on Windows
On Windows we must lock package databases even when opening for read-only access. This means that concurrent GHC sessions are very likely to fail with file lock contention. See #16773.
Diffstat (limited to 'libraries')
-rw-r--r--libraries/ghc-boot/GHC/PackageDb.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/ghc-boot/GHC/PackageDb.hs b/libraries/ghc-boot/GHC/PackageDb.hs
index c7984d0edb..31073711d4 100644
--- a/libraries/ghc-boot/GHC/PackageDb.hs
+++ b/libraries/ghc-boot/GHC/PackageDb.hs
@@ -387,6 +387,8 @@ decodeFromFile :: FilePath -> DbOpenMode mode t -> Get pkgs ->
IO (pkgs, DbOpenMode mode PackageDbLock)
decodeFromFile file mode decoder = case mode of
DbOpenReadOnly -> do
+ -- Note [Locking package database on Windows]
+ -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- When we open the package db in read only mode, there is no need to acquire
-- shared lock on non-Windows platform because we update the database with an
-- atomic rename, so readers will always see the database in a consistent