Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Daniel Gröber (dxld)'s avatar
    64ec45a7
    rts: retainer: Reduce DEBUG_RETAINER ifdef noise · 64ec45a7
    Daniel Gröber (dxld) authored
    Keeping track of the maximum stack seems like a good idea in all
    configurations. The associated ASSERTs only materialize in debug mode but
    having the statistic is nice.
    
    To make the debug code less prone to bitrotting I introduce a function
    'debug()' which doesn't actually print by default and is #define'd away
    only when the standard DEBUG define is off.
    64ec45a7
    History
    rts: retainer: Reduce DEBUG_RETAINER ifdef noise
    Daniel Gröber (dxld) authored
    Keeping track of the maximum stack seems like a good idea in all
    configurations. The associated ASSERTs only materialize in debug mode but
    having the statistic is nice.
    
    To make the debug code less prone to bitrotting I introduce a function
    'debug()' which doesn't actually print by default and is #define'd away
    only when the standard DEBUG define is off.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.