
5 Jul
2013
5 Jul
'13
8:24 p.m.
In other words, we always "load" a tiny special plugin that does the 'reinitializeGlobals` call and is otherwise a noop. Since all plugins share the some dynamically loaded library, we just need 'reinitializeGlobals` to be called once, no matter how many plugins are loaded. Then the actual plugins wouldn't need to know about the whole fiasco.
Realized: this is bogus, isn't it? There's nothing prevent a plugin from being compiled with its own "static" copy of libHSghc, is there? There could be more than two images of libHSghc in play at any given time.