From: Thomas Schilling Date: Mon, 17 Aug 2009 14:23:52 +0000 (+0000) Subject: Make the dynamic linker thread-safe. X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=4fa44a3ae9c36222ccb460ba3ed24e46bf7c70ae;hp=4fa44a3ae9c36222ccb460ba3ed24e46bf7c70ae;p=ghc-hetmet.git Make the dynamic linker thread-safe. The current implementation is rather pessimistic. The persistent linker state is now an MVar and all exported Linker functions are wrapped in modifyMVar calls. This is serves as a big lock around all linker functions. There might be a chance for more concurrency in a few places. E.g., extending the closure environment and loading packages might be independent in some cases. But for now it's better to be on the safe side. ---