Commit cb7220b3 authored by Daniel Gröber (dxld)'s avatar Daniel Gröber (dxld)

rts: retainer: Remove outdated invariants on traversePushStack

These invariants don't seem to make any sense in the current code.  The
text talks about c_child_r as if it were an StgClosure, for which RSET()
would make sense, but it's a retainer aka 'CostCentreStack*'.
parent bd78b696
......@@ -69,8 +69,6 @@ information about the retainers is still applicable.
(4) printRetainer() and printRetainerSetShort() in RetainerSet.c.
// TODO: Change references to c_child_r in comments to 'data'.
/* -----------------------------------------------------------------------------
* Declarations...
* -------------------------------------------------------------------------- */
......@@ -1276,14 +1274,8 @@ traverseSmallBitmap (traverseState *ts, StgPtr p, uint32_t size, StgWord bitmap,
* *cp is one of the following: TSO, AP_STACK.
* If *cp is TSO, c == c_child_r.
* stackStart < stackEnd.
* RSET(c) and RSET(c_child_r) are valid, i.e., their
* interpretation conforms to the current value of flip (even when they
* are interpreted to be NULL).
* If *c is TSO, its state is not ThreadComplete,or ThreadKilled,
* which means that its stack is ready to process.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment