Skip to content
Snippets Groups Projects
  • Sylvain Henry's avatar
    320b0783
    Retain CAFs in the interpreter · 320b0783
    Sylvain Henry authored
    iserv-proxy-interpreter dynamically loads libraries. It must retain CAFs
    to avoid issues like:
    
    > iserv-proxy-interpreter.exe:internal error:Evaluated a CAF that was GC'd!
    
    ghc-lib uses a hacky keepCAFsForGHCi.c file; iserv still uses a custom
    hs-main C file. We use -fkeep-cafs as it has the same effect.
    320b0783
    History
    Retain CAFs in the interpreter
    Sylvain Henry authored
    iserv-proxy-interpreter dynamically loads libraries. It must retain CAFs
    to avoid issues like:
    
    > iserv-proxy-interpreter.exe:internal error:Evaluated a CAF that was GC'd!
    
    ghc-lib uses a hacky keepCAFsForGHCi.c file; iserv still uses a custom
    hs-main C file. We use -fkeep-cafs as it has the same effect.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.