on maps created with MAP_NORESERVE.
2006-07-12 Corinna Vinschen <corinna@vinschen.de>
+ * mmap.cc (mmap_record::alloc_page_map): Don't call VirtualProtect
+ on maps created with MAP_NORESERVE.
+
+2006-07-12 Corinna Vinschen <corinna@vinschen.de>
+
* include/pthread.h: Define PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT and
PTHREAD_PRIO_PROTECT only if _POSIX_THREAD_PRIO_INHERIT is defined.
DWORD start_protect = gen_create_protect ();
DWORD real_protect = gen_protect ();
- if (real_protect != start_protect
+ if (real_protect != start_protect && !noreserve ()
&& !VirtualProtect (get_address (), get_len (),
real_protect, &start_protect))
system_printf ("Warning: VirtualProtect (addr: %p, len: 0x%x, "