diff options
author | Owen Anderson <resistor@mac.com> | 2009-08-19 21:48:34 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-08-19 21:48:34 +0000 |
commit | a83e868078c4a493815c0e751645068656ea7d36 (patch) | |
tree | 74ec6378b29bda035ce49c54d92f39342da2f969 /llvm/lib/System/Unix/Process.inc | |
parent | ddf20023d328ca49a0d018109ca5e7abbf731dff (diff) | |
download | bcm5719-llvm-a83e868078c4a493815c0e751645068656ea7d36.tar.gz bcm5719-llvm-a83e868078c4a493815c0e751645068656ea7d36.zip |
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.
llvm-svn: 79472
Diffstat (limited to 'llvm/lib/System/Unix/Process.inc')
-rw-r--r-- | llvm/lib/System/Unix/Process.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/System/Unix/Process.inc b/llvm/lib/System/Unix/Process.inc index 2da31c9f215..c4ce35a208f 100644 --- a/llvm/lib/System/Unix/Process.inc +++ b/llvm/lib/System/Unix/Process.inc @@ -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 |