[RFC] Using large pages for large hash tables

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 17 09:36:31 PDT 2016


2016-10-17 18:13 GMT+02:00 Rafael EspĂ­ndola <rafael.espindola at gmail.com>:
>>> Would the same interface work on windows?
>>
>> Yes, using VirtualAlloc using MEM_LARGE_PAGES flag:
>> https://msdn.microsoft.com/fr-fr/library/windows/desktop/aa366887(v=vs.85).aspx
>>
>> Size can be determined using GetLargePageMinimum(), or a multiple of it.
>
> Thanks a lot for the pointer. With that API one has to use
> VirtualFree, correct?

Correct. No difference to non-large pages.

Michael


More information about the llvm-commits mailing list