[commit: ghc] master: Runtime linker: Break m32 allocator out into its own file (fe8a4e5)
git at git.haskell.org
git at git.haskell.org
Tue May 24 21:41:35 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/fe8a4e5d77ef8b2bdb2e7e87d50eb477c94bce43/ghc
>---------------------------------------------------------------
commit fe8a4e5d77ef8b2bdb2e7e87d50eb477c94bce43
Author: Erik de Castro Lopo <erikd at mega-nerd.com>
Date: Tue May 24 19:26:56 2016 +1000
Runtime linker: Break m32 allocator out into its own file
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
>---------------------------------------------------------------
fe8a4e5d77ef8b2bdb2e7e87d50eb477c94bce43
rts/Linker.c | 321 ++--------------------------------------------
rts/ghc.mk | 2 +-
rts/linker/M32Alloc.c | 345 ++++++++++++++++++++++++++++++++++++++++++++++++++
rts/linker/M32Alloc.h | 47 +++++++
rts/posix/OSMem.c | 12 +-
rts/sm/OSMem.h | 17 ++-
rts/win32/OSMem.c | 12 +-
7 files changed, 435 insertions(+), 321 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc fe8a4e5d77ef8b2bdb2e7e87d50eb477c94bce43
More information about the ghc-commits
mailing list