[GHC] #12577: The flag -xb has no effect on Windows

GHC ghc-devs at haskell.org
Wed Sep 7 07:40:25 UTC 2016


#12577: The flag -xb has no effect on Windows
----------------------------------------+---------------------------------
           Reporter:  Phyx-             |             Owner:
               Type:  bug               |            Status:  new
           Priority:  normal            |         Milestone:
          Component:  Compiler          |           Version:  8.0.1
           Keywords:                    |  Operating System:  Windows
       Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
          Test Case:                    |        Blocked By:
           Blocking:                    |   Related Tickets:  #12576
Differential Rev(s):                    |         Wiki Page:
----------------------------------------+---------------------------------
 `-xb` is supposed to be used to change the base memory location for heap
 allocation calls. However all the calls in `rts\win32\OSMEM.c` call
 `VirtualAlloc` with `NULL` and not the desired start address.

 This makes the flag not do anything on Windows (based on quick inspection
 of allocated values).

 [[Image(http://i.imgur.com/e1O9Jlb.png, 720px)]]

 Allocation always starts at `0x020000`

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


More information about the ghc-tickets mailing list