Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Daniel Gröber (dxld)'s avatar
    f3bb7397
    rts: RetainerSet: Remove obsolete fist/second-approach choice · f3bb7397
    Daniel Gröber (dxld) authored
    In the old code when DEBUG_RETAINER was set, FIRST_APPROACH is
    implied. However ProfHeap.c now depends on printRetainerSetShort which is
    only available with SECOND_APPROACH. This is because with FIRST_APPROACH
    retainerProfile() will free all retainer sets before returning so by the
    time ProfHeap calls dumpCensus the retainer set pointers are segfaulty.
    
    Since all of this debugging code obviously hasn't been compiled in ages
    anyways I'm taking the liberty of just removing it.
    
    Remember guys: Dead code is a liability not an asset :)
    f3bb7397
    History
    rts: RetainerSet: Remove obsolete fist/second-approach choice
    Daniel Gröber (dxld) authored
    In the old code when DEBUG_RETAINER was set, FIRST_APPROACH is
    implied. However ProfHeap.c now depends on printRetainerSetShort which is
    only available with SECOND_APPROACH. This is because with FIRST_APPROACH
    retainerProfile() will free all retainer sets before returning so by the
    time ProfHeap calls dumpCensus the retainer set pointers are segfaulty.
    
    Since all of this debugging code obviously hasn't been compiled in ages
    anyways I'm taking the liberty of just removing it.
    
    Remember guys: Dead code is a liability not an asset :)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.