[commit: ghc] master: Make globals use sharedCAF (6f7ed1e)

git at git.haskell.org git at git.haskell.org
Tue Nov 29 22:19:35 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/6f7ed1e51bf360621a3c2a447045ab3012f68575/ghc

>---------------------------------------------------------------

commit 6f7ed1e51bf360621a3c2a447045ab3012f68575
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date:   Tue Nov 29 16:50:32 2016 -0500

    Make globals use sharedCAF
    
    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.
    
    Reviewers: rwbarton, simonmar, austin, hvr, erikd, bgamari
    
    Reviewed By: simonmar, bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2575


>---------------------------------------------------------------

6f7ed1e51bf360621a3c2a447045ab3012f68575
 compiler/HsVersions.h                              | 16 +++++
 compiler/ghci/Linker.hs                            | 44 ++++++------
 compiler/main/DynFlags.hs                          | 15 ++++
 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 +++++++---------------
 testsuite/tests/plugins/LinkerTicklingPlugin.hs    |  4 +-
 .../tests/plugins/annotation-plugin/SayAnnNames.hs |  1 -
 .../should_compile/T7702plugin/T7702Plugin.hs      |  1 -
 14 files changed, 156 insertions(+), 182 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 6f7ed1e51bf360621a3c2a447045ab3012f68575


More information about the ghc-commits mailing list