#7518: Instruction list length in bco->instrs redundand
-----------------------------+----------------------------------------------
Reporter:  nomeata           |          Owner:                  
    Type:  task              |         Status:  new             
Priority:  normal            |      Component:  Runtime System  
 Version:  7.6.1             |       Keywords:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
 Failure:  None/Unknown      |      Blockedby:                  
Blocking:                    |        Related:                  
-----------------------------+----------------------------------------------
 While reading through the BCO-related code I notice that in the first word
 of the instruction list of a BCO (bco->instrs->payload[0]), the length of
 the list (as the multiple of 16-bit-words) is stored. This is used in
 debugging code, e.g. in the disassembler.

 However as far as I can tell this is duplicate information:
 bco->instrs->bytes already contains this information (as multiple of
 bytes).

 Maybe the instruction list was not a proper StgArrWords object before and
 this hack was required? If that is the case, I guess it can be removed
 now, saving a neglectable amount of memory and cleaning the code a bit.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7518>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to