summaryrefslogtreecommitdiff
path: root/docs/users_guide/codegens.rst
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-01-24 11:17:55 -0500
committerBen Gamari <ben@smart-cactus.org>2020-02-14 10:16:36 -0500
commit97497baeb70c443030e9e0c59abf4930679b4f82 (patch)
treef035b6562221523e49733e659a5f45457d55142f /docs/users_guide/codegens.rst
parent6060003e4f95101adaef0b2c7f26154c59f2e83a (diff)
downloadhaskell-97497baeb70c443030e9e0c59abf4930679b4f82.tar.gz
base: Always clamp reads/writes to 2GB in length
Previously we did this only on Darwin due to #17414. However, even on other platforms >2GB writes are on shaky ground. POSIX explicitly says that the result is implementation-specified and Linux will write at most 0x7ffff000, even on 64-bit platforms. Moreover, getting the sign of the syscall result correct is tricky, as demonstrated by the fact that T17414 currently fails on FreeBSD. For simplicity we now just uniformly clamp to 0x7ffff000 on all platforms.
Diffstat (limited to 'docs/users_guide/codegens.rst')
0 files changed, 0 insertions, 0 deletions