HomeFreeBSD

lang/smalltalk: use modern memory management

Description

lang/smalltalk: use modern memory management

The memory allocator defaults to some horrifying complex code to manage
mmap'd allocations. On system where MAP_NORESERVE is defined (Linux) it
uses a much simpler approach relying on memory overcommit. Enable this
code on FreeBSD by defining MAP_NORESERVE to 0 (all allocations
are MAP_NORESERVE on FreeBSD unless a sysctl is set).

Entierly disable the other code path as it (somewhat gratutiously) uses
sbrk.

Approved by: danfe (maintainer)
Sponsord by: DARPA
Differential Revision: https://reviews.freebsd.org/D42974

Details

Provenance
brooksAuthored on Dec 11 2023, 5:40 PM
Differential Revision
D42974: lang/smalltalk: use modern memory management
Parents
R11:af6504f9e7ec: math/stp: remove nonsensical sbrk use
Branches
Unknown
Tags
Unknown