[commit: ghc] ghc-7.10: Trac #9878: Have StaticPointers support dynamic loading. (cd66ec3)

git at git.haskell.org git at git.haskell.org
Mon Jan 19 14:02:00 UTC 2015


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

On branch  : ghc-7.10
Link       : http://ghc.haskell.org/trac/ghc/changeset/cd66ec3620cbf56fb856712633b045991adf28f0/ghc

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

commit cd66ec3620cbf56fb856712633b045991adf28f0
Author: Alexander Vershilov <alexander.vershilov at gmail.com>
Date:   Mon Jan 12 05:29:18 2015 -0600

    Trac #9878: Have StaticPointers support dynamic loading.
    
    Summary:
    A mutex is used to protect the SPT.
    
    unsafeLookupStaticPtr and staticPtrKeys in GHC.StaticPtr are made
    monadic.
    
    SPT entries are removed in a destructor function of modules.
    
    Authored-by: Facundo Domínguez <facundo.dominguez at tweag.io>
    Authored-by: Alexander Vershilov <alexander.vershilov at tweag.io>
    
    Test Plan: ./validate
    
    Reviewers: austin, simonpj, hvr
    
    Subscribers: carter, thomie, qnikst, mboes
    
    Differential Revision: https://phabricator.haskell.org/D587
    
    GHC Trac Issues: #9878
    
    (cherry picked from commit 7637810a93441d29bc84bbeeeced0615bbb9d9e4)


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

cd66ec3620cbf56fb856712633b045991adf28f0
 compiler/deSugar/StaticPtrTable.hs                 | 23 ++++++++
 includes/rts/StaticPtrTable.h                      |  8 +++
 libraries/base/GHC/StaticPtr.hs                    | 33 +++++-------
 rts/Linker.c                                       |  1 +
 rts/StaticPtrTable.c                               | 61 +++++++++++++++++++---
 .../tests/codeGen/should_run/CgStaticPointers.hs   | 11 ++--
 testsuite/tests/rts/GcStaticPointers.hs            |  2 +-
 testsuite/tests/rts/ListStaticPointers.hs          | 10 ++--
 8 files changed, 113 insertions(+), 36 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 cd66ec3620cbf56fb856712633b045991adf28f0


More information about the ghc-commits mailing list