Implemented Memory::DontNeed on Windows, pages are reset and removed from working set. (#471)

This commit is contained in:
Branimir Karadžić
2026-10-22 00:37:35 +00:00
committed by GitHub
parent 97aa6da7db
commit 49c7d6050f
2 changed files with 30 additions and 1 deletions
+6 -1
View File
@@ -719,7 +719,12 @@ namespace bx
}
}
BX_UNUSED(advise);
if (Memory::DontNeed == advise)
{
VirtualAlloc(_address, _size, MEM_RESET, PAGE_NOACCESS);
VirtualUnlock(_address, _size);
}
return _address;
#else
BX_UNUSED(_address, _size, _alignment, _flags, state, protect, advise, page, granularity);