This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [lia64-kernel] Re: Re: Re: Re: Re: Re: Re: clone and clone2


David Mosberger <davidm@hpl.hp.com> writes:

> You can still do:
> 
> 	clone(flags & ~CLONE_MAP_STACK, stack_base, stack_size);
> 
> Again, it would _seem_ like the kernel should reserve the stack area,
> but it wouldn't.

No, since the memory [stack_base,stack_base+stack_size) must already
be allocated by the process.  So in fact, the memory is reserved.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]