summaryrefslogtreecommitdiff
path: root/rts/linker/M32Alloc.h
Commit message (Collapse)AuthorAgeFilesLines
* Define MAP_ANONYMOUS on systems that only provide MAP_ANONGracjan Polak2016-12-231-5/+0
| | | | | | | | | | | | Reviewers: simonmar, erikd, austin, bgamari Reviewed By: bgamari Subscribers: gracjan, rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D2881 GHC Trac Issues: #13005
* linker: Move mmapForLinker declaration into LinkerInternals.hBen Gamari2016-11-021-2/+0
| | | | | | | | | | | | Test Plan: Validate Reviewers: simonmar, erikd, austin Reviewed By: simonmar Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2645
* Runtime linker: Break m32 allocator out into its own fileErik de Castro Lopo2016-05-251-0/+47
This makes the code a little more modular and allows the removal of some CPP hackery. By providing dummy implementations of of the `m32_*` functions (which simply call `errorBelch`) it means that the call sites for these functions are syntax checked even when `RTS_LINKER_USE_MMAP` is `0`. Also changes some size parameter types from `unsigned int` to `size_t`. Test Plan: Validate on Linux, OS X and Windows Reviewers: Phyx, hsyl20, bgamari, simonmar, austin Reviewed By: simonmar, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2237