Make globals use sharedCAF
Summary: The use of globals is quite painful when multiple rts are loaded, e.g. when plugins are loaded, which bring in a second rts. The sharedCAF appraoch was employed for the FastStringTable; I've taken the libery to extend this to the other globals I could find. This is a reboot of D2575, that should hopefully not exhibit the same windows build issues. Reviewers: Phyx, simonmar, goldfire, bgamari, austin, hvr, erikd Reviewed By: Phyx, simonmar, bgamari Subscribers: mpickering, thomie Differential Revision: https://phabricator.haskell.org/D2773
Showing
- compiler/HsVersions.h 16 additions, 0 deletionscompiler/HsVersions.h
- compiler/ghci/Linker.hs 22 additions, 22 deletionscompiler/ghci/Linker.hs
- compiler/main/DynFlags.hs 15 additions, 1 deletioncompiler/main/DynFlags.hs
- compiler/main/StaticFlags.hs 19 additions, 1 deletioncompiler/main/StaticFlags.hs
- compiler/simplCore/CoreMonad.hs 5 additions, 70 deletionscompiler/simplCore/CoreMonad.hs
- compiler/utils/FastString.hs 0 additions, 7 deletionscompiler/utils/FastString.hs
- compiler/utils/Util.hs 34 additions, 0 deletionscompiler/utils/Util.hs
- docs/users_guide/extending_ghc.rst 0 additions, 13 deletionsdocs/users_guide/extending_ghc.rst
- includes/rts/Globals.h 18 additions, 9 deletionsincludes/rts/Globals.h
- libraries/base/GHC/Conc/Sync.hs 1 addition, 1 deletionlibraries/base/GHC/Conc/Sync.hs
- rts/Globals.c 25 additions, 54 deletionsrts/Globals.c
- rts/RtsSymbols.c 5 additions, 0 deletionsrts/RtsSymbols.c
- testsuite/tests/plugins/LinkerTicklingPlugin.hs 1 addition, 3 deletionstestsuite/tests/plugins/LinkerTicklingPlugin.hs
- testsuite/tests/plugins/annotation-plugin/SayAnnNames.hs 0 additions, 1 deletiontestsuite/tests/plugins/annotation-plugin/SayAnnNames.hs
- testsuite/tests/simplCore/should_compile/T7702plugin/T7702Plugin.hs 0 additions, 1 deletion...tests/simplCore/should_compile/T7702plugin/T7702Plugin.hs
Loading
Please register or sign in to comment