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

rts: RetainerProfile: Explain retainVisitClosure return values

[ci skip]
parent a8137780
...@@ -303,7 +303,7 @@ retainVisitClosure( StgClosure *c, const StgClosure *cp, const stackData data, c ...@@ -303,7 +303,7 @@ retainVisitClosure( StgClosure *c, const StgClosure *cp, const stackData data, c
} else { } else {
// This is not the first visit to *c. // This is not the first visit to *c.
if (isMember(r, retainerSetOfc)) if (isMember(r, retainerSetOfc))
return 0; // no need to process child return 0; // no need to process children
if (s == NULL) if (s == NULL)
associate(c, addElement(r, retainerSetOfc)); associate(c, addElement(r, retainerSetOfc));
...@@ -322,7 +322,7 @@ retainVisitClosure( StgClosure *c, const StgClosure *cp, const stackData data, c ...@@ -322,7 +322,7 @@ retainVisitClosure( StgClosure *c, const StgClosure *cp, const stackData data, c
} }
if (isRetainer(c)) if (isRetainer(c))
return 0; // no need to process child return 0; // no need to process children
// compute c_child_r // compute c_child_r
out_data->c_child_r = r; out_data->c_child_r = r;
...@@ -331,7 +331,7 @@ retainVisitClosure( StgClosure *c, const StgClosure *cp, const stackData data, c ...@@ -331,7 +331,7 @@ retainVisitClosure( StgClosure *c, const StgClosure *cp, const stackData data, c
// now, RSET() of all of *c, *cp, and *r is valid. // now, RSET() of all of *c, *cp, and *r is valid.
// (c, c_child_r) are available. // (c, c_child_r) are available.
return 1; return 1; // do process children
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment