[commit: ghc] master: rts: Comment wibbles (90283b5)

git at git.haskell.org git at git.haskell.org
Mon Apr 16 18:37:33 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/90283b5f54427f2f04dce7901f2722dc75e7d098/ghc

>---------------------------------------------------------------

commit 90283b5f54427f2f04dce7901f2722dc75e7d098
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Apr 16 14:35:41 2018 -0400

    rts: Comment wibbles


>---------------------------------------------------------------

90283b5f54427f2f04dce7901f2722dc75e7d098
 includes/rts/storage/Closures.h | 2 +-
 rts/sm/GC.c                     | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/includes/rts/storage/Closures.h b/includes/rts/storage/Closures.h
index e5b274d..e52043c 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 9e6bd55..e52400e 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



More information about the ghc-commits mailing list