• Daniel Gröber (dxld)'s avatar
    rts: retainer: Turn global traversal state into a struct · ead05f80
    Daniel Gröber (dxld) authored
    Global state is ugly and hard to test. Since the profiling code isn't quite
    as performance critical as, say, GC we should prefer better code here.
    
    I would like to move the 'flip' bit into the struct too but that's
    complicated by the fact that the defines which use it directly are also
    called from ProfHeap where the traversalState is not easily
    available. Maybe in a future commit.
    ead05f80
RetainerProfile.c 71 KB