Tue Aug 18 14:32:43 PDT 2009 Thomas Schilling <nomin...@googlemail.com> * Remove the lock around NameCache for readBinIface. Turns out using atomic update instead of a full-blown lock was easier than I thought. It should also be safe in the case where we concurrently read the same interface file. Whichever thread loses the race will simply find that all of the names are already defined and will have no effect on the name cache.
M ./compiler/iface/BinIface.hs -12 +14 M ./compiler/iface/IfaceEnv.lhs -26 +14 M ./compiler/main/HscMain.lhs -3 M ./compiler/main/HscTypes.lhs -4 View patch online: http://darcs.haskell.org/ghc/_darcs/patches/20090818213243-7c5c6-e8158a24755f134c78c89cf6adf2ac80ef910021.gz _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc