diff options
author | Eli Zaretskii <eliz@gnu.org> | 2016-02-14 19:46:29 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-02-14 19:46:29 +0200 |
commit | 8badf953da5e629bc67db113719b72412270dabd (patch) | |
tree | 4afa7a657a8f0308949e4f5555b26ebe23607283 /lisp/emacs-lisp/syntax.el | |
parent | 856cd948d1a5a016ad36721246a049d33451902f (diff) | |
download | emacs-8badf953da5e629bc67db113719b72412270dabd.tar.gz emacs-8badf953da5e629bc67db113719b72412270dabd.tar.bz2 emacs-8badf953da5e629bc67db113719b72412270dabd.zip |
Make 'mmap_realloc' on MS-Windows more reliable
* src/w32heap.c (mmap_alloc): If reserving memory succeeds, but
committing fails, return NULL. Don't call GetLastError twice for
the same API error.
(mmap_realloc): Zero out MEMORY_BASIC_INFORMATION structures
before calling VirtualQuery, to avoid using garbled values if the
call fails. If committing more pages from the same block fails,
fall back on mmap_alloc + CopyMemory. Enhance debugging printouts
if the call to VirtualAlloc to commit more pages fails.
(Bug#22526)
Diffstat (limited to 'lisp/emacs-lisp/syntax.el')
0 files changed, 0 insertions, 0 deletions