[D-runtime] druntime should be a shared library/DLL
    Walter Bright 
    walter at digitalmars.com
       
    Wed Feb  6 22:32:08 PST 2013
    
    
  
On 2/6/2013 4:56 PM, David Nadlinger wrote:
> But the situation is a *bit* more complex than that. For example, currently 
> the GC root ranges for static and TLS data are just determined once at program 
> startup by taking the address of the respective marker symbols. This clearly 
> can't work in the presence of multiple images that can also be loaded and 
> unloaded during execution, and having a shared druntime doesn't magically 
> change that.
I know about that (heck, I wrote a lot of that code). Making druntime a shared 
lib does not magically solve that particular problem. But it *does* solve the 
problem of two instances of the gc fighting each other.
Another issue that needs solving is scanning the exception handling tables for 
shared libraries as they are loaded and unloaded. Oh, and the static 
construction/destruction.
    
    
More information about the D-runtime
mailing list