Request help on allocator.

IGotD- nise at nise.com
Sat Dec 2 20:32:09 UTC 2023


On Saturday, 2 December 2023 at 19:13:18 UTC, Vino B wrote:
> Hi All,
>
>   Request your help in understanding the below program, with 
> the below program I can allocate 8589934592(8GB) it prints the 
> length 8589934592(8GB) where as my laptop has only 4 GB so the 
> confusion is that how can this program allocate 8GB RAM when I 
> have only 4GB of RAM installed
>

>
> From,
> Vino

Welcome to the wonderful world of virtual memory.

Virtual memory size != physical memory size

This nothing to do with D programming language but how the OS 
manage the memory.



More information about the Digitalmars-d-learn mailing list