Subject: Re: sys_sbrk()? sys_sstk()?
To: Anders Magnusson <ragge@ludd.luth.se>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-kern
Date: 10/15/2001 12:48:28
On Mon, Oct 15, 2001 at 12:25:35PM +0200, Anders Magnusson wrote:
> >
> > How, exactly, would we replace sbrk with mmap()? By keeping a s3kr1t
> > global that's the highest address that has ever been returned and
> > mapping there with MAP_FIXED? There are myriad other icky issues.
> >
> Main question: Must the sbrk() call be still around? I doubt there are
> many programs still around today that use sbrk() directly; if they
> do I should more think of considering them broken.
>
> The best thing to do would be to just remove sbrk() and rehack malloc()
> to use mmap() instead. This would also solve the problem with giant
> page tables on e.g. vax :-)
>
> Would anyone complain much if sbrk() et al were removed?
>
> -- Ragge
pkgsrc/devel/boehm-gc calls sbrk()
(just a datapoint, nothing else)
Regards,
Alistair