So I noticed something a bit strange. I set aside 4 GB of physical memory for my program. I had already allocated 2 GiB of storage and I tried to add 1 GiB using the code below. The program then throws a bad allocation saying that the memory is full. So i wonder if i allocate 1 GiB using.
char* p1 = new char[1073741824];
Does this resereve some additional storage that is not shown using task manager or resource monitor?
Using visual studio 2017 Windows 10.