Browse Source

branches/zip: Remove PAGE_WRITECOMBINE from VirtualAlloc() in

os_mem_alloc_large(). Otherwise the allocation fails during startup 
with error code 87 - invalid parameter. Reviewed by Marko.
pull/374/head
calvin 18 years ago
parent
commit
7ec866a54b
  1. 2
      os/os0proc.c

2
os/os0proc.c

@ -129,7 +129,7 @@ skip:
size = *n = ut_2pow_round(*n + system_info.dwPageSize - 1,
system_info.dwPageSize);
ptr = VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE,
PAGE_READWRITE | PAGE_WRITECOMBINE);
PAGE_READWRITE);
if (!ptr) {
fprintf(stderr, "InnoDB: VirtualAlloc(%lu bytes) failed;"
" Windows error %lu\n",

Loading…
Cancel
Save