[GHC] #8039: RTS linker: unloadObj() does not actually unload the code

GHC ghc-devs at haskell.org
Tue Sep 3 12:15:16 CEST 2013


#8039: RTS linker: unloadObj() does not actually unload the code
--------------------------------------+------------------------------------
        Reporter:  simonmar           |            Owner:  simonmar
            Type:  task               |           Status:  closed
        Priority:  high               |        Milestone:  7.8.1
       Component:  Runtime System     |          Version:  7.6.3
      Resolution:  fixed              |         Keywords:
Operating System:  Unknown/Multiple   |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown       |       Difficulty:  Unknown
       Test Case:  rts/linker_unload  |       Blocked By:
        Blocking:                     |  Related Tickets:
--------------------------------------+------------------------------------

Comment (by heisenbug):

 I have pushed a new branch on my github ghc fork. It
 [https://github.com/ggreif/ghc/commit/206a4871a0e61f03668be5ed8f75faca603c137f
 contains just one commit], about unloading `dlopen`ed shared object files.

 It is actually untested, and non-windows. But it may be of use for doing
 what Simon did with unloading `.o` files in this ticket. Might be
 interesting to folks.

 Of course the GC must be wired up in a similar fashion, etc. Be careful.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8039#comment:15>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler




More information about the ghc-tickets mailing list