cvs commit: fptools/ghc/compiler/ghci ByteCodeLink.lhs

Julian Seward sewardj@glass.cse.ogi.edu
Wed, 8 Aug 2001 07:40:02 -0700


sewardj     2001/08/08 07:40:02 PDT

  Modified files:
    ghc/compiler/ghci    ByteCodeLink.lhs 
  Log:
  Attach finaliser for malloc'd blocks to the UnlinkedBCOs, not to
  linked really-really-really BCOs.  This is because an unlinked BCO
  may be copied many times to generated LinkedBCOs before it dies.
  Attaching finalisers to linked BCOs could mean multiple free()s on
  the same address.
  
  Revision  Changes    Path
  1.22      +14 -21    fptools/ghc/compiler/ghci/ByteCodeLink.lhs