diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2019-06-24 20:08:38 +0200 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2019-09-22 15:18:10 +0200 |
commit | fd213d177cc9f3818babccf8df623e23dc10799e (patch) | |
tree | a8d5e24be18c7a0e66349a25f2034010c331f77a /rts/RetainerProfile.c | |
parent | 44d5cc0dc456a138bb7976c17d07e5d41873051a (diff) | |
download | haskell-fd213d177cc9f3818babccf8df623e23dc10799e.tar.gz |
rts: retainer: Update obsolete docs for traverseMaybeInitClosureData
Diffstat (limited to 'rts/RetainerProfile.c')
-rw-r--r-- | rts/RetainerProfile.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/rts/RetainerProfile.c b/rts/RetainerProfile.c index 3fa025d19c..32ea5493a7 100644 --- a/rts/RetainerProfile.c +++ b/rts/RetainerProfile.c @@ -970,20 +970,12 @@ endRetainerProfiling( void ) outputAllRetainerSet(prof_file); } -/* ----------------------------------------------------------------------------- - * Returns the actual pointer to the retainer set of the closure *c. - * It may adjust RSET(c) subject to flip. - * Side effects: - * RSET(c) is initialized to NULL if its current value does not - * conform to flip. - * Note: - * Even though this function has side effects, they CAN be ignored because - * subsequent calls to retainerSetOf() always result in the same return value - * and retainerSetOf() is the only way to retrieve retainerSet of a given - * closure. - * We have to perform an XOR (^) operation each time a closure is examined. - * The reason is that we do not know when a closure is visited last. - * -------------------------------------------------------------------------- */ +/** + * Make sure a closure's profiling data is initialized to zero if it does not + * conform to the current value of the flip bit. + * + * See Note [Profiling heap traversal visited bit]. + */ void traverseMaybeInitClosureData(StgClosure *c) { |