summaryrefslogtreecommitdiff
path: root/hadrian
diff options
context:
space:
mode:
authorAlec Theriault <alec.theriault@gmail.com>2019-05-13 15:31:56 -0700
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-05-22 16:48:45 -0400
commitecc9366a0e0db107c286935130837b2222e2dd82 (patch)
treebd0eceaf7b88104e2ca105f089b85b8dd95fe19c /hadrian
parent78c3f3305e173c7667ffb47b97ff0ecacc279fe5 (diff)
downloadhaskell-ecc9366a0e0db107c286935130837b2222e2dd82.tar.gz
RTS: Fix restrictive cast
Commit e75a9afd2989e0460f9b49fa07c1667299d93ee9 added an `unsigned` cast to account for OSes that have signed `rlim_t` signed. Unfortunately, the `unsigned` cast has the unintended effect of narrowing `rlim_t` to only 4 bytes. This leads to some spurious out of memory crashes (in particular: Haddock crashes with OOM whenn building docs of `ghc`-the-library). In this case, `W_` is a better type to cast to: we know it will be unsigned too and it has the same type as `*len` (so we don't suffer from accidental narrowing).
Diffstat (limited to 'hadrian')
0 files changed, 0 insertions, 0 deletions