Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Rzepka <adam.rzepka@teyon.com>2014-03-06 17:00:31 +0400
committeradahn <adam.rzepka@teyon.com>2014-03-06 18:46:54 +0400
commit5dc8b1cdff99ce57385407591ebbf89bec18c690 (patch)
treecd1c5e6bee59646c73f8213c771131ae0a516b29
parent66aa46557bcafb3e49ca1d4e6b1a3d8cb48322bc (diff)
[runtime] Fixed flags for VirtualAlloc in mono_valloc (Windows)
-rw-r--r--mono/utils/mono-mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/utils/mono-mmap.c b/mono/utils/mono-mmap.c
index b2e245164f0..fe8a98079f8 100644
--- a/mono/utils/mono-mmap.c
+++ b/mono/utils/mono-mmap.c
@@ -107,7 +107,7 @@ void*
mono_valloc (void *addr, size_t length, int flags)
{
void *ptr;
- int mflags = MEM_COMMIT;
+ int mflags = MEM_RESERVE|MEM_COMMIT;
int prot = prot_from_flags (flags);
/* translate the flags */