Added
Link Here
|
1 |
--- dlls/ntdll/unix/virtual.c.orig |
2 |
+++ dlls/ntdll/unix/virtual.c |
3 |
@@ -1562,7 +1562,6 @@ static NTSTATUS create_view( struct file_view **view_ret, void *base, size_t siz |
4 |
|
5 |
if (vprot & VPROT_WRITEWATCH && use_kernel_writewatch) |
6 |
{ |
7 |
- madvise( view->base, view->size, MADV_NOHUGEPAGE ); |
8 |
reset_write_watches( view->base, view->size ); |
9 |
} |
10 |
|
11 |
@@ -2158,7 +2157,6 @@ static NTSTATUS map_view( struct file_view **view_ret, void *base, size_t size, |
12 |
ERR("set_protection failed.\n"); |
13 |
if (vprot & VPROT_WRITEWATCH) |
14 |
{ |
15 |
- madvise( base, size, MADV_NOHUGEPAGE ); |
16 |
reset_write_watches( base, size ); |
17 |
} |
18 |
return STATUS_SUCCESS; |