Subject: Re: sys_sbrk()? sys_sstk()?
To: None <email@example.com>
From: Perry E. Metzger <firstname.lastname@example.org>
Date: 10/14/2001 22:24:56
Thor Lancelot Simon <email@example.com> writes:
> 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?
If you look at how brk/sbrk are implemented, they also already keep
secret global state in userland that tells you the highest address
that has been hit. This would be no different.
The real issue, of course, is whether we can make mmap guarantee that
adjacent mappings with identical properties are coalesced.
Perry E. Metzger firstname.lastname@example.org
"Ask not what your country can force other people to do for you..."