mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Get rid of a helgrind warning. If this is _actually_ a performance problem,
we can find a way to cache the answer that isn't racy. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79472 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9fa24c9619
commit
0d1ea255d9
@ -46,11 +46,11 @@ Process::GetPageSize()
|
||||
// On Cygwin, getpagesize() returns 64k but the page size for the purposes of
|
||||
// memory protection and mmap() is 4k.
|
||||
// See http://www.cygwin.com/ml/cygwin/2009-01/threads.html#00492
|
||||
static const int page_size = 0x1000;
|
||||
const int page_size = 0x1000;
|
||||
#elif defined(HAVE_GETPAGESIZE)
|
||||
static const int page_size = ::getpagesize();
|
||||
const int page_size = ::getpagesize();
|
||||
#elif defined(HAVE_SYSCONF)
|
||||
static long page_size = ::sysconf(_SC_PAGE_SIZE);
|
||||
long page_size = ::sysconf(_SC_PAGE_SIZE);
|
||||
#else
|
||||
#warning Cannot get the page size on this machine
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user