From 16eedf0ba03a751e98f4b57d528344c5fc83e6da Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 4 Sep 2013 14:12:26 +0000 Subject: Support/Process: Add comments about PageSize and AllocationGranularity on Cygwin and Win32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189940 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Windows/Process.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Support/Windows') diff --git a/lib/Support/Windows/Process.inc b/lib/Support/Windows/Process.inc index 38d5bc7e11..f840d064d8 100644 --- a/lib/Support/Windows/Process.inc +++ b/lib/Support/Windows/Process.inc @@ -83,6 +83,8 @@ static unsigned getPageSize() { // that LLVM ought to run as 64-bits on a 64-bit system, anyway. SYSTEM_INFO info; GetSystemInfo(&info); + // FIXME: FileOffset in MapViewOfFile() should be aligned to not dwPageSize, + // but dwAllocationGranularity. return static_cast(info.dwPageSize); } -- cgit v1.2.3