[commit: ghc] master: Trac #9878: Have StaticPointers support dynamic loading. (7637810)
git at git.haskell.org
git at git.haskell.org
Tue Jan 13 16:10:04 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/7637810a93441d29bc84bbeeeced0615bbb9d9e4/ghc
>---------------------------------------------------------------
commit 7637810a93441d29bc84bbeeeced0615bbb9d9e4
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
>---------------------------------------------------------------
7637810a93441d29bc84bbeeeced0615bbb9d9e4
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 7637810a93441d29bc84bbeeeced0615bbb9d9e4
More information about the ghc-commits
mailing list