diff options
author | Adam Rzepka <adam.rzepka@teyon.com> | 2014-03-06 17:00:31 +0400 |
---|---|---|
committer | adahn <adam.rzepka@teyon.com> | 2014-03-06 18:46:54 +0400 |
commit | 5dc8b1cdff99ce57385407591ebbf89bec18c690 (patch) | |
tree | cd1c5e6bee59646c73f8213c771131ae0a516b29 | |
parent | 66aa46557bcafb3e49ca1d4e6b1a3d8cb48322bc (diff) |
[runtime] Fixed flags for VirtualAlloc in mono_valloc (Windows)
-rw-r--r-- | mono/utils/mono-mmap.c | 2 |
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 */ |