Subject: Re: Real vfork() (was: third results)
To: None <jiho@postal.c-zone.net>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 04/05/1998 12:18:22
On Sat, 04 Apr 1998 20:33:03 -0000 (GMT)
jiho@postal.c-zone.net wrote:
> Ah, but that sharing was made possible by moving the USPACE allocation out of
> the vmspace.
Uh, the U-area has never been part of the vmspace. (At least, that I can
remember...)
> The point in the above was, cpu_wait() being a null #define in the i386 port's
> <machine/cpu.h> doesn't matter, because that isn't where the USPACE stuff is
> deallocated anyway. So the deallocation _is_ being done, contrary to what I had
> previously thought.
Right... cpu_wait() couldnt' possibly be where that happens, since it would
unmap the kernel stack before the exit was finished.
The code path that leads to the U-area being freed is via cpu_exit().
Jason R. Thorpe thorpej@nas.nasa.gov
NASA Ames Research Center Home: +1 408 866 1912
NAS: M/S 258-5 Work: +1 650 604 0935
Moffett Field, CA 94035 Pager: +1 415 428 6939