Mail Archives: djgpp-workers/2001/01/16/07:07:03
> From: "Tim Van Holder" <tim DOT van DOT holder AT pandora DOT be>
> Date: Sun, 14 Jan 2001 20:46:05 +0100
>
> > > Annoyance! As it turns out, the latest smalltalk package requires mmap(),
> > What does it use mmap for? Does it really want memory-mapped files,
> > or is that just for better memory allocation?
> Seems to be just memory allocation; it has a new source file (heap.c) that
> provides memory allocation.
That figures: memory-intensive programs built around interpreters
usually are unhappy with the system library's malloc, because it tends
to fragment memory and start paging in a long session. Emacs uses a
combination of gmalloc and a relocatable allocator which sits atop
sbrk, for the same reason. Perhaps using gmalloc in the Smalltalk
port will be better than libc malloc.
Btw, it's possible that Smalltalk will need the _CRT0_FLAG_UNIX_SBRK
and/or _CRT0_FLAG_FILL_SBRK_MEMORY flags in _crt0_startup_flags,
because that's how Unix sbrk behaves.
- Raw text -