Switching to real page sizes, not allocation granularity.

This commit is contained in:
Ben Vanik
2015-07-29 20:28:06 -07:00
parent 122114d1d1
commit c67173fe36
3 changed files with 16 additions and 2 deletions

View File

@@ -15,6 +15,16 @@ namespace xe {
namespace memory {
size_t page_size() {
static size_t value = 0;
if (!value) {
SYSTEM_INFO si;
GetSystemInfo(&si);
value = si.dwPageSize;
}
return value;
}
size_t allocation_granularity() {
static size_t value = 0;
if (!value) {
SYSTEM_INFO si;