[GHC] #11566: I don't need madvise MADV_DONTNEED (was: I don't need madvise DONT_NEED)

GHC ghc-devs at haskell.org
Fri Feb 12 14:59:34 UTC 2016


#11566: I don't need madvise MADV_DONTNEED
-------------------------------------+-------------------------------------
        Reporter:  mfox              |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.1
      Resolution:                    |             Keywords:
Operating System:  Linux             |         Architecture:  aarch64
 Type of failure:  Incorrect         |            Test Case:
  warning at compile-time            |
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

@@ -6,1 +6,1 @@
- madvise(..., DONT_NEED) is not implemented.
+ madvise(..., MADV_DONTNEED) is not implemented.

New description:

 Many tests fail because of a warning in rts/posix/OSMem.c

     unable to decommit memory: function not implemented

 The reason it says "function not implemented" is that the function
 madvise(..., MADV_DONTNEED) is not implemented.

 This is on a stock Ubuntu LTS 14.04 machine. The only interesting thing
 about it is that it's running on a pre-production armv8 processor with a
 beta 4.2 guest kernel.

--

Comment (by rwbarton):

 If the two-stage allocator isn't working on your system, you can disable
 it with `configure --disable-large-address-space`.

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


More information about the ghc-tickets mailing list