unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18995: Error: Could not reserve dynamic heap area.
@ 2014-11-08 15:22 Alexander Shukaev
  2014-11-08 17:29 ` Eli Zaretskii
  0 siblings, 1 reply; 22+ messages in thread
From: Alexander Shukaev @ 2014-11-08 15:22 UTC (permalink / raw)
  To: 18995

[-- Attachment #1: Type: text/plain, Size: 1516 bytes --]

The build enviroment is MinGW-w64 and MSYS2.

When I build `emacs-24', Emacs is being configured with

Should Emacs use the GNU version of malloc?  yes
Should Emacs use a relocating allocator for buffers? yes
Should Emacs use mmap(2) for buffer allocation?  no

With this configuration the x64 version is built just fine, but the x86
version build fails with

make[2]: Entering directory
> '/c/Users/Haroogan/Projects/GitHub/MINGW-packages/mingw-w64-emacs/src/.build/i686-w64-mingw32/lisp'
> Compiling
> /C/Users/Haroogan/Projects/GitHub/MINGW-packages/mingw-w64-emacs/src/emacs/lisp/emacs-lisp/macroexp.el
> Error: Could not reserve dynamic heap area.


 I've checked what is called in this case and it seems to be fine at the
first glance:

#else  /* USE_LSB_TAG */
static char *
allocate_heap (void)
{
#ifdef _WIN64
  size_t size = 0x4000000000ull; /* start by asking for 32GB */
#else
  /* We used to start with 2GB here, but on Windows 7 that would leave
     too little room in the address space for threads started by
     Windows on our behalf, e.g. when we pop up the file selection
     dialog.  */
  size_t size = 0x68000000; /* start by asking for 1.7GB */ <<< This one is
used.
#endif
  void *ptr = NULL;

  while (!ptr && size > 0x00100000)
    {
      reserved_heap_size = size;
      ptr = VirtualAlloc (NULL,
  get_reserved_heap_size (),
  MEM_RESERVE,
  PAGE_NOACCESS);
      size -= 0x00800000; /* if failed, decrease request by 8MB */
    }

  return ptr;
}
#endif /* USE_LSB_TAG */


Any ideas?

[-- Attachment #2: Type: text/html, Size: 3022 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2014-11-09 17:17 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-08 15:22 bug#18995: Error: Could not reserve dynamic heap area Alexander Shukaev
2014-11-08 17:29 ` Eli Zaretskii
2014-11-08 18:17   ` Alexander Shukaev
2014-11-08 18:30     ` Eli Zaretskii
2014-11-08 18:40       ` Alexander Shukaev
2014-11-08 18:57         ` Eli Zaretskii
2014-11-08 19:16           ` Alexander Shukaev
2014-11-08 19:50             ` Eli Zaretskii
2014-11-08 19:58               ` Alexander Shukaev
2014-11-08 20:05                 ` Eli Zaretskii
2014-11-08 20:49                   ` Daniel Colascione
2014-11-09 16:12                     ` Eli Zaretskii
2014-11-09 16:30                       ` Andreas Schwab
2014-11-09 16:47                         ` Eli Zaretskii
     [not found]                       ` <545F94E4.5060102@dancol.org>
2014-11-09 16:30                         ` Alexander Shukaev
     [not found]                         ` <837fz4pc4o.fsf@gnu.org>
2014-11-09 16:40                           ` Daniel Colascione
2014-11-09 16:35                       ` Andreas Schwab
2014-11-09 16:39                         ` Alexander Shukaev
2014-11-09 16:49                           ` Eli Zaretskii
2014-11-09 16:53                             ` Alexander Shukaev
2014-11-09 17:17                               ` Eli Zaretskii
2014-11-09 17:14                         ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).