summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2018-04-16 14:35:41 -0400
committerBen Gamari <ben@smart-cactus.org>2018-04-16 14:36:50 -0400
commit90283b5f54427f2f04dce7901f2722dc75e7d098 (patch)
treebc5c8a454e56999fcd111b9c0c1c42de0f031072
parent0e37361392a910ccbbb2719168f4e8d8272b2ae2 (diff)
downloadhaskell-90283b5f54427f2f04dce7901f2722dc75e7d098.tar.gz
rts: Comment wibbles
-rw-r--r--includes/rts/storage/Closures.h2
-rw-r--r--rts/sm/GC.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/includes/rts/storage/Closures.h b/includes/rts/storage/Closures.h
index e5b274d895..e52043c73c 100644
--- a/includes/rts/storage/Closures.h
+++ b/includes/rts/storage/Closures.h
@@ -125,7 +125,7 @@ typedef struct {
StgClosure *static_link; // See Note [CAF lists]
const StgInfoTable *saved_info;
// `saved_info` also used for the link field for `debug_caf_list`,
- // see `newCAF` and Note [CAF lists]
+ // see `newCAF` and Note [CAF lists] in rts/sm/Storage.h.
} StgIndStatic;
typedef struct StgBlockingQueue_ {
diff --git a/rts/sm/GC.c b/rts/sm/GC.c
index 9e6bd55075..e52400e16e 100644
--- a/rts/sm/GC.c
+++ b/rts/sm/GC.c
@@ -95,6 +95,8 @@
*
* We build up a static object list while collecting generations 0..N,
* which is then appended to the static object list of generation N+1.
+ *
+ * See also: Note [STATIC_LINK fields] in Storage.h.
*/
/* N is the oldest generation being collected, where the generations