[commit: ghc] wip/erikd/linker: WIP: Runtime linker: Break m32 allocator out into its own file (a507ff1)

git at git.haskell.org git at git.haskell.org
Wed May 18 00:13:17 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/erikd/linker
Link       : http://ghc.haskell.org/trac/ghc/changeset/a507ff19e7f2225751e1dcd34e1127c68e5edef1/ghc

>---------------------------------------------------------------

commit a507ff19e7f2225751e1dcd34e1127c68e5edef1
Author: Erik de Castro Lopo <erikd at mega-nerd.com>
Date:   Sat May 14 17:27:38 2016 +1000

    WIP: 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`.


>---------------------------------------------------------------

a507ff19e7f2225751e1dcd34e1127c68e5edef1
 rts/Linker.c          | 299 ++--------------------------------------------
 rts/ghc.mk            |   2 +-
 rts/linker/M32Alloc.c | 320 ++++++++++++++++++++++++++++++++++++++++++++++++++
 rts/linker/M32Alloc.h |  25 ++++
 rts/posix/OSMem.c     |  12 +-
 rts/sm/OSMem.h        |   2 +-
 rts/win32/OSMem.c     |  12 +-
 7 files changed, 370 insertions(+), 302 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 a507ff19e7f2225751e1dcd34e1127c68e5edef1


More information about the ghc-commits mailing list