[commit: ghc] master: rts: Make MBLOCK_SPACE_SIZE dynamic (f5974c8)

git at git.haskell.org git at git.haskell.org
Fri Oct 30 23:06:24 UTC 2015


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/f5974c88451783d4c1fb69444b10d7053be142bf/ghc

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

commit f5974c88451783d4c1fb69444b10d7053be142bf
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Fri Oct 30 20:48:53 2015 +0100

    rts: Make MBLOCK_SPACE_SIZE dynamic
    
    Previously this was introduced in D524 as a compile-time constant.
    Sadly, this isn't flexible enough to allow for environments where
    ulimits restrict the maximum address space size (see, for instance,
    
    Consequently, we are forced to make this dynamic. In principle this
    shouldn't be so terrible as we can place both the beginning and end
    addresses within the same cache line, likely incurring only one or so
    additional instruction in HEAP_ALLOCED.
    
    Test Plan: validate
    
    Reviewers: austin, simonmar
    
    Reviewed By: simonmar
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1353
    
    GHC Trac Issues: #10877


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

f5974c88451783d4c1fb69444b10d7053be142bf
 rts/posix/OSMem.c  | 19 ++++++++++---------
 rts/sm/HeapAlloc.h | 28 +++++++++++++---------------
 rts/sm/MBlock.c    | 26 +++++++++++++++++++-------
 rts/sm/OSMem.h     | 10 +++++-----
 rts/win32/OSMem.c  |  6 +++---
 5 files changed, 50 insertions(+), 39 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 f5974c88451783d4c1fb69444b10d7053be142bf


More information about the ghc-commits mailing list