[GHC] #8289: unused variable in rts/posix/OSMem.c getPageSize

GHC ghc-devs at haskell.org
Sat Sep 14 03:58:11 CEST 2013


#8289: unused variable in rts/posix/OSMem.c getPageSize
------------------------------------+-------------------------------------
       Reporter:  rwbarton          |             Owner:
           Type:  bug               |            Status:  new
       Priority:  low               |         Milestone:
      Component:  Compiler          |           Version:  7.7
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 bgamari pointed this out on IRC.

 The static variable `pageSize` is never set, so every `getPageSize` call
 does a system call.  There should be a line `pageSize = ret;` before
 `return ret;`.

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



More information about the ghc-tickets mailing list