Skip to content
Snippets Groups Projects
Commit cd66ec36 authored by Alexander Vershilov's avatar Alexander Vershilov Committed by thoughtpolice
Browse files

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: default avatarFacundo Domínguez <facundo.dominguez@tweag.io>
Authored-by: default avatarAlexander Vershilov <alexander.vershilov@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 7637810a)
parent 5541b6c3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment