|
From: Nicholas N. <nj...@cs...> - 2005-08-01 15:38:04
|
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. Have you tried taking it out to see what happens? Jeremy should know why it's done this way, but he's been very quiet lately... Jeremy, are you still out there? N |