[fpc-devel] FPC memory manager and OS/2 - heap sub-allocation
runewalsh
rrunewalsh at gmail.com
Tue Jun 30 18:13:12 CEST 2026
> Do I assume correctly that the memory manager wouldn't try allocating
a smaller block in such a case?
No, if allocation for a good-looking size fails, it retries with the
minimal one:
https://gitlab.com/freepascal.org/fpc/source/-/blob/9936961be6474a674b061b79f8893a5b1e50af1e/rtl/inc/heap.inc#L1210-1215
(which shouldn’t matter much as you’re going to get an OOM soon anyway).
More information about the fpc-devel
mailing list