summaryrefslogtreecommitdiff
path: root/os_dep.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-12-23 16:13:45 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-12-23 16:13:45 +0400
commit4a271a487d2eea7b19ae9c473fcd2d12e5492b18 (patch)
treece2daebc14be7a4481b6e754dd9ea065cf967220 /os_dep.c
parent332900a5542796a327a4b899042847095d9b7cc1 (diff)
downloadbdwgc-4a271a487d2eea7b19ae9c473fcd2d12e5492b18.tar.gz
Fix dwSize argument of VirtualFree call in detect_GetWriteWatch (Win32)
* os_dep.c (detect_GetWriteWatch): Pass 0 (instead of GC_page_size) to Win32 VirtualFree if GWW_VDB (dwSize must be 0 if MEM_RELEASE according to MSDN).
Diffstat (limited to 'os_dep.c')
-rw-r--r--os_dep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os_dep.c b/os_dep.c
index 12c0485a..17e55820 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -1596,7 +1596,7 @@ void GC_register_data_segments(void)
} else {
GetWriteWatch_alloc_flag = MEM_WRITE_WATCH;
}
- VirtualFree(page, GC_page_size, MEM_RELEASE);
+ VirtualFree(page, 0 /* dwSize */, MEM_RELEASE);
} else {
/* GetWriteWatch will be useless. */
GetWriteWatch_func = NULL;