druntime's PAGESIZE

Patrick Schluter Patrick.Schluter at bbox.fr
Sat Oct 31 19:54:49 UTC 2020


On Saturday, 31 October 2020 at 19:18:08 UTC, IGotD- wrote:
> On Saturday, 31 October 2020 at 19:06:33 UTC, Denis Feklushkin 
> wrote:
>> [...]
>
> Yes, this is particular bad and also this should OS 
> configurable (there might be an OS that suddenly bumps the page 
> size to let's say 16KB) and not part of the D memory management 
> code but part of the OS specific configuration.

SPARC has 8K pages. Ok SPARC is almost dead but still.
iOS also went full on bigger pages (16K afaicr).

>
> Another problem for small systems is that the GC seems to 
> assume page aligned memory, typically received from mmap or 
> VirtualAlloc, however on small system and using the malloc 
> fallback this doesn't work well. This waste memory on small 
> system.
>
> This should be fixed.

Yes.


More information about the Digitalmars-d mailing list