[commit: ghc] master: Make globals use sharedCAF (c3c7024)
git at git.haskell.org
git at git.haskell.org
Sun Dec 11 15:29:29 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/c3c702441137dc8f7ee0dd5ac313be96d625459a/ghc
>---------------------------------------------------------------
commit c3c702441137dc8f7ee0dd5ac313be96d625459a
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date: Sun Dec 11 11:32:28 2016 +0000
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
>---------------------------------------------------------------
c3c702441137dc8f7ee0dd5ac313be96d625459a
compiler/HsVersions.h | 16 +++++
compiler/ghci/Linker.hs | 44 ++++++------
compiler/main/DynFlags.hs | 16 ++++-
compiler/main/StaticFlags.hs | 20 +++++-
compiler/simplCore/CoreMonad.hs | 75 ++------------------
compiler/utils/FastString.hs | 7 --
compiler/utils/Util.hs | 34 ++++++++++
docs/users_guide/extending_ghc.rst | 13 ----
includes/rts/Globals.h | 27 +++++---
libraries/base/GHC/Conc/Sync.hs | 2 +-
rts/Globals.c | 79 +++++++---------------
rts/RtsSymbols.c | 5 ++
testsuite/tests/plugins/LinkerTicklingPlugin.hs | 4 +-
.../tests/plugins/annotation-plugin/SayAnnNames.hs | 1 -
.../should_compile/T7702plugin/T7702Plugin.hs | 1 -
15 files changed, 161 insertions(+), 183 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc c3c702441137dc8f7ee0dd5ac313be96d625459a
More information about the ghc-commits
mailing list