|
From: Tom H. <to...@co...> - 2005-07-31 20:04:41
|
In message <Pin...@ch...>
Nicholas Nethercote <nj...@cs...> wrote:
> On Sun, 31 Jul 2005, Tom Hughes wrote:
>
> > Does anybody know why we map the whole of the shadow space at startup
> > using PROT_NONE and then just change the protection on pages as they
> > are required rather than just allocating them as required?
>
> Isn't it to prevent anything else being put in the shadow memory area?
Maybe, but the address space manager already forces all memory mappings
to a fixed address inside the client address space anyway.
The valgrind part of the address space (above the shadow space) is not
protected in the same way, and we don't have any problems with client
mappings widing up there.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|