#8491 closed bug (fixed)

Make BlockAlloc.c comments slightly more accurate

Reported by: ezyang Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.6.3
Keywords: patch Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

I think this patch makes the comments for BlockAlloc slightly more accurate, but I'd like someone to double check for me.

diff --git a/rts/sm/BlockAlloc.c b/rts/sm/BlockAlloc.c
index 18c167f..41a2279 100644
--- a/rts/sm/BlockAlloc.c
+++ b/rts/sm/BlockAlloc.c
@@ -45,7 +45,7 @@ static void  initMBlock(void *mblock);
    bd->free is either:
       - zero for a non-group-head; bd->link points to the head
       - (-1) for the head of a free block group
-      - or it points within the block
+      - or it points within the block (group)
 
    bd->blocks is either:
       - zero for a non-group-head; bd->link points to the head

Change History (3)

comment:1 Changed 20 months ago by ezyang

  • Keywords patch added

comment:2 Changed 16 months ago by Edward Z. Yang <ezyang@…>

In 7fa0b43593644fba8a3a60e5503a55268578d3c0/ghc:

Make BlockAlloc.c comment slightly more accurate (fixes #8491)

Signed-off-by: Edward Z. Yang <[email protected]>

comment:3 Changed 16 months ago by ezyang

  • Resolution set to fixed
  • Status changed from new to closed

I went ahead and just pushed this change.

Note: See TracTickets for help on using tickets.