aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-08-19 21:48:34 +0000
committerOwen Anderson <resistor@mac.com>2009-08-19 21:48:34 +0000
commit16552ff6a0119f27f0581c2506b92c6ef105c469 (patch)
tree0968949ea2529688fab0b2cd3a28708dba49a141
parent3145f0a7ed05c8e6cfa150cfec431d4714397382 (diff)
downloadexternal_llvm-16552ff6a0119f27f0581c2506b92c6ef105c469.zip
external_llvm-16552ff6a0119f27f0581c2506b92c6ef105c469.tar.gz
external_llvm-16552ff6a0119f27f0581c2506b92c6ef105c469.tar.bz2
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
-rw-r--r--lib/System/Unix/Process.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/System/Unix/Process.inc b/lib/System/Unix/Process.inc
index 2da31c9..c4ce35a 100644
--- a/lib/System/Unix/Process.inc
+++ b/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