mirror of
https://github.com/bkaradzic/bx.git
synced 2026-10-28 19:45:39 +00:00
Implemented Memory::DontNeed on Windows, pages are reset and removed from working set. (#471)
This commit is contained in:
+6
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user