> 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).
_______________________________________________
fpc-devel maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to