add comment for srt_bitmap field
authorSimon Marlow <marlowsd@gmail.com>
Wed, 3 Feb 2010 10:34:31 +0000 (10:34 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 3 Feb 2010 10:34:31 +0000 (10:34 +0000)
includes/rts/storage/InfoTables.h

index c81e1e2..8d51428 100644 (file)
@@ -231,7 +231,12 @@ typedef struct StgInfoTable_ {
     StgClosureInfo  layout;    /* closure layout info (one word) */
 
     StgHalfWord     type;      /* closure type */
-    StgHalfWord     srt_bitmap;    /* number of entries in SRT (or constructor tag) */
+    StgHalfWord     srt_bitmap;
+       /* In a CONSTR:
+            - the constructor tag
+          In a FUN/THUNK
+            - a bitmap of SRT entries
+       */
 
 #ifdef TABLES_NEXT_TO_CODE
     StgCode         code[FLEXIBLE_ARRAY];