Enable two-step allocator on FreeBSD
authorBen Gamari <ben@smart-cactus.org>
Mon, 30 Jul 2018 22:01:40 +0000 (18:01 -0400)
committerBen Gamari <ben@smart-cactus.org>
Wed, 1 Aug 2018 00:22:49 +0000 (20:22 -0400)
commit79e136104922aa4dcb555084731a890294cda106
tree1245843945d62724128037d58e58f76d70f586b8
parentf579162afbacc21a264d0fe7a117bc9c241220bb
Enable two-step allocator on FreeBSD

Simplify #ifdef nesting and use MAP_GUARD on FreeBSD and similar
systems. This allows the two-step allocator to be used on FreeBSD,
fixing #15348.

(cherry picked from commit 123aeb916cba93018039e583d42408dae80a6dc9)
rts/posix/OSMem.c