summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2019-06-20 19:59:53 +0200
committerDaniel Gröber <dxld@darkboxed.org>2019-09-22 15:18:10 +0200
commitb92ed68a7c452685e21debec947b11520e70f8da (patch)
treea7d58e9108323418410fc41320d8a78d1ca82f1c
parent48e816f0d754120029ab65b90f3ff42827a8e907 (diff)
downloadhaskell-b92ed68a7c452685e21debec947b11520e70f8da.tar.gz
rts: Add note reference to SET_PROF_HDR for profiling 'flip' bit
-rw-r--r--includes/rts/storage/ClosureMacros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/rts/storage/ClosureMacros.h b/includes/rts/storage/ClosureMacros.h
index 694320054a..a3873cc49d 100644
--- a/includes/rts/storage/ClosureMacros.h
+++ b/includes/rts/storage/ClosureMacros.h
@@ -126,6 +126,8 @@ INLINE_HEADER StgHalfWord GET_TAG(const StgClosure *con)
retainer profiling code will just set 'rs' to NULL upon visiting a closure with
an invalid 'flip' bit anyways.
+ See Note [Profiling heap traversal visited bit] for details.
+
[1]: Technically we should set 'rs' to `NULL | flip`.
*/
#define SET_PROF_HDR(c,ccs_) \