rts: Query system rlimit for maximum address-space size
authorBen Gamari <bgamari.foss@gmail.com>
Sun, 3 Jun 2018 01:22:52 +0000 (21:22 -0400)
committerBen Gamari <ben@smart-cactus.org>
Sun, 3 Jun 2018 03:21:01 +0000 (23:21 -0400)
commit26273774661bd0780b1ae8f0755ea135a0ceaf92
tree18f7ae9018d6b7c13eacdd04513ba65a24562f16
parent21e9d4f5f67dca22fbe3495f637347c5a8f7b52c
rts: Query system rlimit for maximum address-space size

When we attempt to reserve the heap, we query the system's rlimit to
establish the starting point for our search over sizes.

Test Plan: Validate

Reviewers: erikd, simonmar

Reviewed By: simonmar

Subscribers: rwbarton, thomie, carter

GHC Trac Issues: #14492

Differential Revision: https://phabricator.haskell.org/D4754
rts/posix/OSMem.c