diff options
author | Alec Theriault <alec.theriault@gmail.com> | 2019-05-13 15:31:56 -0700 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-05-22 16:48:45 -0400 |
commit | ecc9366a0e0db107c286935130837b2222e2dd82 (patch) | |
tree | bd0eceaf7b88104e2ca105f089b85b8dd95fe19c /hadrian | |
parent | 78c3f3305e173c7667ffb47b97ff0ecacc279fe5 (diff) | |
download | haskell-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