[llvm-commits] CVS: llvm-poolalloc/include/poolalloc/MMAPSupport.h
John Criswell
criswell at cs.uiuc.edu
Wed May 25 19:35:59 PDT 2005
Changes in directory llvm-poolalloc/include/poolalloc:
MMAPSupport.h updated: 1.4 -> 1.5
---
Log message:
The macro is MAP_NORESERVE, not MMAP_NORESERVE.
This will prevent us from reserving tons of swap space on Sparc.
---
Diffs of the changes: (+2 -2)
MMAPSupport.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm-poolalloc/include/poolalloc/MMAPSupport.h
diff -u llvm-poolalloc/include/poolalloc/MMAPSupport.h:1.4 llvm-poolalloc/include/poolalloc/MMAPSupport.h:1.5
--- llvm-poolalloc/include/poolalloc/MMAPSupport.h:1.4 Wed May 18 14:56:22 2005
+++ llvm-poolalloc/include/poolalloc/MMAPSupport.h Wed May 25 21:35:40 2005
@@ -45,9 +45,9 @@
#endif
int Flags = MAP_PRIVATE | MAP_ANONYMOUS;
-#ifdef MMAP_NORESERVE
+#ifdef MAP_NORESERVE
if (UseNoReserve)
- Flags |= MMAP_NORESERVE;
+ Flags |= MAP_NORESERVE;
#endif
void *Mem = ::mmap(0, Size, PROT_READ|PROT_WRITE, Flags, FD, 0);
More information about the llvm-commits
mailing list